|Own Diagram Editor based on existing org.eclipse.papyrus.uml.diagram.clazz Editor [message #1020610]
||Mon, 18 March 2013 15:03
| Jan Winter
Registered: March 2013
I want to create a new Papyrus Diagram Editor and integrate it into Papyrus.
The existing Class Diagram Editor from org.eclipse.papyrus.uml.diagram.clazz does exactly what I need, I only have to do some modifications in one or two classes of this plugin.
What I done so far:
- I copied the org.eclipse.papyrus.uml.diagram.clazz plugin project and rename it into
org.eclipse.papyrus.uml.diagram.myeditor (also the subpackages are changed from clazz to myeditor)
- I changed every occurrence of the the word "clazz" into "myeditor" in the plugin.xml
- The plugin ID is changed to org.eclipse.papyrus.uml.diagram.myeditor
- I also changed the labels for the menu entries with the plugin.xml
for example in:
label="Create a new MyEditor Diagram"
tooltip="Create a new MyEditor Diagram">
If I start a Runtime Eclipse Application from my plugin I see the Entry "MyEditor Diagram" in the list of available Editors but when I choose it, it still executes code from the original org.eclipse.papyrus.uml.diagram.clazz plugin
I checked this by putting a system.out.println command in the initializeGraphicalViewer() method of the class UMLDiagramEditor in my plugin and in the original org.eclipse.papyrus.uml.diagram.clazz plugin. The method initializeGraphicalViewer() from the original org.eclipse.papyrus.uml.diagram.clazz plugin is called.
Thanks in advance.
|Re: Own Diagram Editor based on existing org.eclipse.papyrus.uml.diagram.clazz Editor [message #1404760 is a reply to message #1404754]
||Tue, 05 August 2014 14:28
| Sofía Pérez
Registered: July 2014
Hi Camille! Thank you so much for your reply!|
I did what you suggested but when I select my configuration file embedded in the plugin, the New Diagram contextual menu is disabled. Besides, I would like to have both SoaML and UML diagrams available for creation. Is there a way, perhaps without using viewpoints, to do what I need?
My project consists of a Papyrus SoaML plugin, which has its own common component that creates the category for SoaML, so that every diagram created has the SoaML profile set by default. This plugin needs to offer several diagram kinds to create.
On the other hand, I have to implement a Papyrus QoS plugin that needs to interact with SoaML models.
I hope I did a good job explaining the requirements. I really appreciate your help!
Powered by FUDForum
. Page generated in 0.03635 seconds