Help with tutorial [message #1860914] |
Fri, 08 September 2023 09:52  |
Eclipse User |
|
|
|
Hi everyone
I am a complete beginner with graphiti and I am currently trying to do the tutorial (https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.graphiti.doc%2Fresources%2Fdocu%2Fgfw%2Fadd-feature.htm).
I am completely lost within the first few steps of the tutorial. I have created a class for the diagram type provider and copy pasted the implementation, and I have edited the plugin.xml file. When I create a class for TutorialAddEClassFeature and copy paste the code, there are errors on nearly every line. Most of the errors are just a matter of importing some libraries, but many still remain. For instance, it does not recognize the add and canAdd methods and suggests to rename them to add1 and canAdd1. It is also unable to resolve DiagramtargetDiagram to a type. These are just a few examples, there are many more. I have the same problem when doing the next step (overriding getAddFeature in the feature provider). Could anyone help me with this or have any tips on how to solve it?
Thank you
|
|
|
|
|
Re: Help with tutorial [message #1860953 is a reply to message #1860943] |
Mon, 11 September 2023 11:18  |
Eclipse User |
|
|
|
Hi Leonard,
from the screenshot this looks ok.
The File -> New -> Example will just allow you to create a Graphiti diagram using the example, but cannot be used to have a look at the project itself.
The easiest way to get the project when you have the Graphiti SDK installed in your IDE is probably to do Import -> Plug-in Development-> Plug-ins and Fragments
On the next page of the wizard select "Projects with source folders" under "Import as" (leave the rest as default, then on the next page bring "org.eclipse.graphiti.examples.tutorial" into the right column and press finish. You should then get the complete project with sources in your workspace.
-Michael
|
|
|
Powered by
FUDForum. Page generated in 0.06768 seconds