|
Re: Problem with Draw2 [message #530543 is a reply to message #530503] |
Fri, 30 April 2010 06:19 |
Robert Wloch Messages: 109 Registered: July 2009 |
Senior Member |
|
|
Hi Asma,
comments below...
Quote: | Hi,
I want to use a custom figure in my graphical définition in which i use the draw2d.StereotypeLabel2 but i have an error while generating the diagram Editor:
|
Do you really get this error while generating the diagram or afterwards when eclipse is trying to build the diagram?
Quote: | ''The import org.eclipse.uml2.diagram.common.draw2d.StereotypeLabel2 cannot be Resolved''.
Can anyone tell me how to resolve this problem.
Thank u in advance.
|
If it is a build problem, then you might need to change the MANIFEST of the diagram plugin and add a dependency to the project containing your custom figure. If that's the case, remember that regenerating the diagram might override your manual changes.
Rob
[Updated on: Fri, 30 April 2010 06:20] Report message to a moderator
|
|
|
|
Re: Problem with Draw2 [message #530663 is a reply to message #530636] |
Fri, 30 April 2010 13:20 |
Robert Wloch Messages: 109 Registered: July 2009 |
Senior Member |
|
|
Quote: | Hi Robert,
First, i want to thank u for replying my question.
|
You're welcome.
Quote: | In fact, it's a build problem. After generating the diagram, this error appears. So, if u can explain me more how to do the changes in the MANIFEST and what
|
Do the following:
Use Ctrl+Shift+T to do a type search and look for your "StereotypeLabel2", selected that line (don't double click!) and check in the status line of the search type dialog in which jar archive it is. Then open your gmfgen file and navigate to the node that starts with "Gen Plugin ..." and select "show in properties view" from its context menu. There you'll find "Required Plugin Identifiers". Use the property editor to add the plugin dependency and regenerate the diagram plugin. Sometimes, regenerating the diagram causes even more errors. Because of that, I always delete "old" diagram plugins completely (with delete contents on disk) before a regenerate. And that's why I never mess in the generated code.
In case your Search Type dialog doesn't show the type, you may need to configure the search scope by: Ctrl+3, then type "add all" and run that command. Goto "Do the following" above.
Quote: |
kind of problems i can have if the diagram override the manual change?
|
Well, the change will be gone and you need to add the dependency again.
This can happen even with changes to the gmfgen, which you may need to regenerate as your plugin evolves. Of course, there's GMF's reconciler, but it tends to "forget" settings. For that reason I'm using http://code.google.com/p/gmftools/GmfTools where I can set the dependency in the *.ext file, that is generated (by GmfTools) and used to tweek the gmfgen file.
Rob
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03769 seconds