Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRe: Help with tutorial
https://www.eclipse.org/forums/index.php/mv/msg/1113608/1860953/#msg_1860953
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]]>Michael Wenz2023-09-11T15:18:18-00:00Re: Help with tutorial
https://www.eclipse.org/forums/index.php/mv/msg/1113608/1860943/#msg_1860943
I apologize for my complete ignorance, but how can I run the complete example project? I believe that I have downloaded the Graphiti SDK but I don't have the example project when I click on File->New->Example.
Also, I'm pretty sure that I have all of the plugin dependencies defined properly, could you have a look at the attached screenshot? I still have the same issues that I metioned in the previous post.
Thank you]]>Leonard Theisler2023-09-11T09:32:23-00:00Re: Help with tutorial
https://www.eclipse.org/forums/index.php/mv/msg/1113608/1860916/#msg_1860916
this sounds as if you do not have the plugin dependencies to Graphiti defined. Your plugin must define at least dependencies to org.eclipse.graphiti, org.eclipse.graphiti.ui and org.eclipse.graphiti.mm.
You can also have a look at the complete example project org.eclipse.graphiti.examples.tutorial that is part of the Graphiti SDK to see how things should look like.
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]]>Leonard Theisler2023-09-08T13:52:59-00:00Re: Automated Test for Graphiti Diagrams
https://www.eclipse.org/forums/index.php/mv/msg/1111184/1853738/#msg_1853738
Che Bumagat2022-07-15T19:27:28-00:00Re: Automated Test for Graphiti Diagrams
https://www.eclipse.org/forums/index.php/mv/msg/1111184/1853702/#msg_1853702
I'm not aware of any test frameworks that would support Graphiti specifically, but any framework that supports GEF should be usable from my point of view.
- Michael]]>Michael Wenz2022-07-14T06:08:11-00:00Automated Test for Graphiti Diagrams
https://www.eclipse.org/forums/index.php/mv/msg/1111184/1853663/#msg_1853663
My team is using RCPTT and we have yet to explore if RCPTT is a good option.
I'm just looking to see anyone used other tools for testing Graphiti diagrams.
Thanks!]]>Che Bumagat2022-07-13T06:30:08-00:00Re: Blurry context buttons on subsequent use
https://www.eclipse.org/forums/index.php/mv/msg/1110933/1852905/#msg_1852905
sorry, but I have not seen that before in Graphiti, also my tests using the test tools do not show that behavior. In my test installation based on Eclipe 2022-03 the context buttons always appeared correctly.
What we use here is basically pure GEF 3 functionality. Not sure if that will bring a result, but you may try to ask in their forum.
- Michael]]>Michael Wenz2022-06-10T08:01:59-00:00Blurry context buttons on subsequent use
https://www.eclipse.org/forums/index.php/mv/msg/1110933/1852862/#msg_1852862
we have in the BPMN2 forum a question about a strange blurry effect:
===
Ralph
]]>Ralph Soika2022-06-08T18:59:52-00:00Re: Editor is dirty when create method returns EMPTY
https://www.eclipse.org/forums/index.php/mv/msg/369815/1852475/#msg_1852475
I noticed that the CreateFeatureForPattern object always returns true and the GFCommandStack only queries the top CreateFeatureForPattern and not the actual delegated class pattern (e.g. MyCustomPattern).
So even if I override the hasDoneChanges() in my custom pattern, it has no effect. Once the Command executes the create(), the Editor will always be dirty.
Is there are a good way around this?
I see two options
a. Use a custom Create Feature - but this defeats the purpose of using a pattern, no?
b. Create your own GFCommandStack and update the execute() logic to query the delegate pattern's hasDoneChanges().
Anyone ran into a similar issue on using Patterns?]]>Che Bumagat2022-05-17T14:53:10-00:00