How to draw diagrams using draw2d? - eclipse

I have designed a meta model for my systems, and I want to create a graphical editor to facilitate the creation of a model. For this, I'm using the GEF editor. I have failed to come across any easy to understand tutorial on how to draw diagrams using draw2d and then implement then using editparts etc from the GEF.
Can anyone suggest me any useful resources for the same. Video tutorials would ofcourse be welcome.

GEF is the graphical framework developed on top of draw2d and SWT Tree .
Here is Step by Step tutorial creation of graphical editor on a POJO model and same can be used for EMF model or any other domain model
Url : http://www.inf.ed.ac.uk/teaching/courses/ip/resources/GEF/GEF_Tutorial_2up.pdf
List of resources for GEF : Tutorials
Hope this is helpful !!

Related

Generate react native code from sirius

Good evening ,
I want to generate react native code from the sirius but I do not know how and is it possible to use acceleo for that ??
Thanks for helping me .
Yes, they Sirius enables the editing of EMF models and Acceleo can read those EMF models and generate text based on your templates. They both share the same underlying technology and are commonly used that way:
- with a sirius based modeler to edit a domain specific model
- and Acceleo templates to generate text or code

Draw tree diagram in gwt

I want to draw tree diagram in gwt with custom connector color . Is it possible using some jar in gwt. I want to show hierarchy with diffrent connector color.
Can somebody help me?
You can use google visualization libraries. The org chart might be useful in your case. This is a javascript library that's been adapted to GWT so don't worry if you find JS code in the documentation.
Take a look at the documentation and make sure that this is what you're looking for then download the visualization libraries for GWT from here.
I would say to look into a wrapper for Raphaël.
But currently the Raphaël website is down so I am not sure about the state of this product. Although in Github I see a commit from only 5 days ago.

Draw trees with links between them

I'm developing a schema matching visualization tool. I have the problem that I have to draw trees and the links between them like this image:
However, the tool in the image uses Swing but I use JFace.
Is there any visualization toolkit that support this ?
I know this a bit post is old, but it keeps coming up when I search for a solution to connect two nodes in JFace TreeViewer. On JFace forum it was suggested to look at Nebula TreeMapper. Hope this helps someone.

Reverse engineering in Bouml for php project

My php project using Zend framework. i want to generate class diagram for that php(zendframwork). i try to generate class diagram using Bouml project.
I go through this link Boumal java reverse engineering video
but problem is when i drag and drop every php class but that don't show relationship between class
You could give UML Lab (http://uml-lab.com) a try (Note: I'm biased as I'm working for Yatta Solutions ;) ). There is a tutorial explaining how to reverse engineer existing source code: http://www.uml-lab.com/en/uml-lab/tutorials/reverse-engineering-tutorial/. Basically, just create a new Model and Class Diagram and all available PHP source files are imported automatically. Otherwise you can import a PHP file by dragging it onto the diagram editor.
The tool supports Java and PHP, and has build-in support for Zend Framework. It may not understand each PHP source file - but files containing a class should work fine. If there is something the tool doesn't understand you'll be notified and can directly file a bug.
It's a commercial tool, but there is a 30 days trial and a free academic edition. If you have any questions don't hesitate asking them in the forum, bug tracker or by mail.
each time you add a class in a class diagram the relations with the already present classes are shown, except of course if you modified the "drawing settings" to not draw automatically the relations.
but this supposes there are relations to draw ;-)
Php is a not typed language, so the reverse can only create inheritances, the types of the attributes are unknown contrarily to C++ or Java

Creating a graphical editor for a domain specific UI application using Eclipse modeling technologies

I want to creating a graphical editor which a physician can use to create user interfaces to define state-based interactive dialogue based diagnosis systems for simple diseases. Each screen consists of simple UI elements like a textarea,button and these are in a container to make up the state. Once he defines many screens with text and buttons or photos/videos, he wants to save the configuration in a XML file. How can I use the Eclipse modeling technologies to create a graphical editor to do this task
Example below:
I think the GMF tutorial is a good place to start: http://wiki.eclipse.org/GMF_Tutorial