Yay! (pretty long) I did mainly everything, now this are things done (all with PropPanelFactory-like approach)
1) Added a button with action on the PropPanel following the type of the target (in my specific case isAClass) 2) Added a button with action on the Toolbar understanding if it's a manipulate/uml/comment/shape action 3) Added a new menu element on the Explorer panel associated with the type of object to create (with the MetaType that in my situation is an Attribute) 4) Added a context menu for the module plus the menuitem based on the type of container (in my situation is a FigClass) What are my doubts now? a) I don't understand if i should use the org.argouml.i18n.Translator or the cogintive one b) Is there a way to add my resource files (the ones into the module) to the ones seen by the Translator (the problem raise on the Explorer panel where the mapping seems to be done internally, i have not seek'd too much) c) Same thing inside the Explorer panel for the icon to show, i have mine in my module but i don't get how to associate it After this comes the cleansing of the whole stuff but i have some other doubt about this, mainly because of the different approaches to the context menu /explorer menu/toolbar generation. Now i managed to let everything works but there are very etherogenous ways to create all these things (yes they are different but...i like to suffer :P ) 1) Property Panel, use the PropPanelClass that adds the button with the (Undouable)Action and creates, eventually its own property panel. It knows what is the element on wich should work 2) Toolbar, as far as i ve seen it's built inside the UMLDiagram, it works with straight Object[] for the various kind of elements. Use the targetFollower defined in the (Undouable)Action at 1) 3) Explorer Popup, relies on a static array of types and actions, it uses the type (if i understood well) given in this array to understand if the object select allows the specific (Undouable)Action at 1) 4) Context Menus, relies on the Fig* implementation, it understand (in my implementation) the instanceof the class to allow the menu to appear with the right elements Do you think this approach could be ok? Of course as far as i have a consistent (and cleaned, and commented) system i will let you have the code for all these things, of course if there is someone interested in this EnDaRos ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2409704 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]]
