Class diagram from ecore - eclipse

I have .ecore metamodel. How can I automatically generate class diagram from it?

EcoreTools2 is the standard diagram editor for Ecore models in Eclipse. They have a documentation article explaining how to create a diagram from an existing Ecore file.

Create a EMF project using your .ecore, then when you open the project, there will be a .aird , click right on it , and click on initialize class diagram ..

Related

Eclipse sirius cannot reload the diagram editor

I have the EMF model and created the Sirius project for that EMF model. When I run the application and select the created view point I get the diagram editor to drag and drop the features of the model to the editor and I save it. But when I tried to reload the application I get cannot load the part control exception
java.lang.NullPointerException
at org.eclipse.sirius.diagram.business.internal.experimental.sync.DDiagramSynchronizer.getAllMandatoriesAdditionalLayers(DDiagramSynchronizer.java:328)
Any solution for this problem? Thanks in advance

stop code generation from UML class diagram

A colleague generated java code from an UML class diagram. Each time we change the class diagram the java code is now being updated. How can we disable this?
We are using EA 11.1.1111.
Right click on the package and uncheck the option Code Engineering|Live Code Generation

Is it possible to create graphs in a custom eclipse view?

I am creating a custom view in eclipse for a project and I need to be able to bring in data from an outside source and graph it in a custom view. What is the best way to go about doing this? Thanks!
You'l want to look at the Graphical Modeling Project (GMP). That's where you'll find the base classes to build a custom graphical editor from scratch. There are also GMP sub-projects that generate graphical editor implementations from EMF models.

How project/wizard is associated with perspective?

After we create a new project in eclipse, a dialog will be showed as following picture if our current perspective is not associated with this kind of project. So how do Eclipse make this programmatically?
I think it depends on the project nature but the perspective extension point has nothing to connect with the project nature.
Tks for your time :-)
You have to set the finalPerspective attribute in your wizard. See
Associating a Wizard with a Perspective for reference:
Add the finalPerspective attribute to the definition of our wizard element in the extension.
Make the Wizard class implement the interface IExecutableExtension. This interface has only one method setInitializationData. Implement the method in the class and assign the parameter IConfigurationElement to a field in the method.
In the performFinish method of the Wizard, call BasicNewProjectResourceWizard.updatePerspective method.

trying to do UML diagramming with papyrus on eclipse but no diagrams are shown...what could be the issue?

I have eclipse 4.2 and papyrus 0.9. I have started modelling a project by creating class Diagrams but the issue is that papyrus does not draw the diagrams on the editor pane. I can create and add attributes and operations from the model explorer and i can view them from there but i can't see any diagrams on the editor. i do use the papyrus perspective when modelling. so my question is.
what am i doing wrong?
do i need to add other papyrus components?
or is this how papyrus works?
but from the pdf tutorials from the eclipse papyrus project site shows diagrams being drawn with a palette view that i can't seem to find in my eclipse..
On Eclipse Kepler (4.3) and Papyrus (4.3), I was unable to find a way to update the view (class diagram) from the model (model explorer.) If I created the operation by dragging an operation node from the palette to the class in the view, the operation was added to both the diagram and model explorer.
You need to switch to the Papyrus perspective in order for palette view to show up.
I just blogged about this and a few other annoyances. (I realize this question is old enough that you've likely given up, but I found it while searching for a solution to this same problem.)