Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Graphiti Diagram(creating a graphiti diagram)
icon4.gif  Graphiti Diagram [message #1697548] Thu, 04 June 2015 19:16 Go to next message
Ayoub Makroz is currently offline Ayoub MakrozFriend
Messages: 7
Registered: June 2015
Junior Member
Hello Everyone,

I'm new with Eclipse, Creating ecore models and Creating graphiti diagrams of these ecore models.

Well the problem I'm facing right now, is that I don't know how to go from my domain model to a graphiti diagram.
I tried to redo the Hello World diagram (ht tp://www.ancitconsulting.com/tiki-download_file.php?fileId=35). But I can't create a graphiti diagram, all what I find is Graphiti examples diagrams.

In the tutorial they say that graphiti diagram is under Graphiti folder in the examples sections. I can't find this Graphiti folder
I'm using Luna 4.4.2, and I installed the latest version of graphiti ( http://download.eclipse.org/graphiti/updates/0.11.3).

Can you please help Sad

Re: Graphiti Diagram [message #1697654 is a reply to message #1697548] Fri, 05 June 2015 17:59 Go to previous messageGo to next message
Marek Jagielski is currently offline Marek JagielskiFriend
Messages: 97
Registered: April 2012
Member
Hi Ayoub,
For me, the best way to learn Graphiti was to analyse open source projects that use Graphiti. Particularly I have learnt Graphiti on two projects:
1. Activiti:
+ http://activiti.org/screenshots.html#images/screenshots/activiti-designer.png
+ https://github.com/Activiti/Activiti-Designer
2. BPMN modeler:
+ https://www.eclipse.org/bpmn2-modeler/
+ https://github.com/eclipse/bpmn2-modeler

Marek
Re: Graphiti Diagram [message #1697657 is a reply to message #1697654] Fri, 05 June 2015 18:32 Go to previous messageGo to next message
Ayoub Makroz is currently offline Ayoub MakrozFriend
Messages: 7
Registered: June 2015
Junior Member
Thank you for your answer, but my question is (at least it seems) simple, how can I go from my domain model to a graphiti diagram.
Also I didn't know how to open the projects in eclipse ?? (I'm new with eclipse ^_^). And is there tutorial of the steps followed not just the code, because I already found a code for the chess example, but couldn't figure out how it works Razz
Re: Graphiti Diagram [message #1697859 is a reply to message #1697548] Tue, 09 June 2015 07:09 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Ayoub,

probably you have missed to define the required extensions in plugin.xml:
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.graphiti.doc%2Fresources%2Fdocu%2Fgfw%2Fdiagram.htm&cp=27_1_2
(section Register the Diagram Type Provider and Diagram Type).

You can use the File --> New --> Project --> Plug-In Project wizard to
create a new plugin project (needed for any kind of Eclipse extensions),
provide a project name like "test1" click next until you reach "Templates"
page, mark "Plug-in with a Graphiti Editor" and click Finish. That will
create a very basic project containing everything you need to start with a
new Graphiti diagram editor, see:
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.graphiti.doc%2Fresources%2Fdocu%2Ftools%2FNewPluginWizard.html&cp=27_4_0

To get familiar with Graphiti, the Graphiti tutorial would be a good
starting point, not sure if you have gone through that:
http://help.eclipse.org/kepler/index.jsp?nav=%2F27_1

To get familiar with Eclipse plugin development in general, you should step
through one of the tutorials out there in the web, e.g. the one by Lars
Vogel:
http://www.vogella.com/tutorials/EclipsePlugIn/article.html

The creation wizard for new Graphiti test projects has moved to File -->
New --> Project --> Other --> Graphiti Example Project. When you have such a
project you can open the context menu on that project and choose New -->
Graphiti Example Diagram. When your diagram type is correctly registered it
will appear in the drop down box for the diagram type.

Hope that helps...

Michael
Re: Graphiti Diagram [message #1698335 is a reply to message #1697859] Sun, 14 June 2015 11:08 Go to previous messageGo to next message
Ayoub Makroz is currently offline Ayoub MakrozFriend
Messages: 7
Registered: June 2015
Junior Member
Thanks Michael, that helped me a lot
Re: Graphiti Diagram [message #1783341 is a reply to message #1698335] Mon, 12 March 2018 08:56 Go to previous message
Yves LEDUC is currently offline Yves LEDUCFriend
Messages: 56
Registered: May 2015
Member
In my Graphiti project I have a similar problem.
I wish to replace:
- New -> Graphiti Example Diagram by MyCategory> MyDomain Diagram
- The New Diagram dialog, Select diagram type by code defining the diagram type MyDiagramType

Can you tell me how to do that.
Yves
Previous Topic:Create after drop from external viewer
Next Topic:Multi Level Diagram
Goto Forum:
  


Current Time: Fri Apr 19 14:18:18 GMT 2024

Powered by FUDForum. Page generated in 0.06111 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top