Hi all! I have a problem, actually i would like to create a new module for ArgoUML that is expected to integrate into the whole environment, that means properties panels and contextual menus (yup exactly, context menus, this is the main topic). The pourposes of the module are simply to create the get/is/set methods for the various attributes like the "Generate Getters and Setters" from the Eclipse IDE. By no means i intend to add any logic into the code generation: these will be simple methods, only i have not to write them down every single time.
Why i want this, well it is (for me) easier to work like this, i know that it's a controversial topic, but i stumbled on a more general problem while facing my issue. I took the argouml sources, looked up and down and i managed to make a new "Add Getter and Setter" action to the property panel, following the implementation of the ActionAddAttribute, and added the relative PropPanelFactory to the PropPanelFactoryManager all through the module, without touching anything. Now i can add the property and two methods to the model. The second step was to add an element to the context menu just like the "New Attribute" one. And here comes troubles. As far as i have seen, even searching on the internet and the mailing list, seems that it does not exist an insertion point to add voices to the context menu, and the intersting spot seems to be UMLDiagram.getActions, where the call to the various abstract getXXXActions() are made. Would'nt be nice if a system like the one of PropPanelFactories could be implemented even for popup menus? I am currently tryng to follow this direction tryng to modify the 0.28.1 to accomply this task, and any help or suggestion, or even blame, is well accepted! Seems that something exists like the "Epsilon Wizard Language (EWL)" that someone pointed out to be a possible solution but it seems to me like shooting with a tank against a mosquito... and the files available on the EWL website comes from the 2005, a bit old.... EnDaRos ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2409271 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]]
