@Andreas >>>> I think someone even managed to use some scripting framework in >>>> Argo, so that various scripting languages could be used for such >>>> simple tasks?
Yes, but the context menu problem persist, i mean, to accomply the operation that i need is relatively easy and i could have done (and did) with the property panel, but since i had problems into the integration as well (at least in a 'consistent' integration), why not try to find a solution ;) @Bob Tarling > I would think we need some central repository of context actions that > a module can register its actions to and then have our internal > components query that to build extra actions for context menus. > > Better still the module registers some factory class that can generate > those actions when they're needed (or just return null if the action > isn't relevant in context) Well, actually i made a test implementation building a module able to add 1) Popup menu on the Explorer side panel 2) Toolbar button 3) Property Panel...in the property panels area (no mods for this) All with a [ExplorerPopup/PropPanel/Toolbar]Factory approach (very similar to what you Bob proposed) I am currently preparing the Context menu to show inside the designer view (i can call it this way?) understanding where to put the factory. > When ArgoUML creates a context menu on the explorer or on a diagram > Fig it calls each of these factories in turn by querying the > ContextMenuManager. If the factory decides that the menu item is > needed from the context passed to it (the model element) then it adds > that action to the menu before displaying it to the user. Tomorrow i'll give a deeper check to the Figs classes just to do the smallest possible intervention. But i'm confident i'll find a clean way! > So we need some internal changes to allow for this in a clean way but > I think that is better than having module writers tie themselves > directly to our diagram and explorer implementations that may change > in future. I wrote some "test code" to understand the feasibility of the whole stuff and...well... seems to work, of course it's my implementation and having been on ArgoUML code for a really short time... can be quite ugly... PS i'll take some quoting and 'mailing list posting' class as soon as possible... i'm beginning to lost myself in quotes! ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2409547 To unsubscribe from this discussion, e-mail: [[email protected]]. To be allowed to post to the list contact the mailing list moderator, email: [[email protected]]
