Questions tagged [eclipse-gmf]

The Eclipse Graphical Modeling Project

The Eclipse Graphical Modeling Project (GMP) provides a set of generative components and runtime infrastructures for developing graphical editors based on EMF () and GEF ().

http://www.eclipse.org/modeling/gmp/

97 questions
1
vote
0 answers

Using GMF 2d extension classes in GEF

I am trying to use the PolylineConnectionEx as my connector in GEF. Does anyone have experience doing this? I have tried to do it but it crashes our editor. I would like to use the PolylineConnectionEx because it has many "built in" features which I…
1
vote
1 answer

GMF display diagram example

How can I display a GMF diagram, with the file format "*.ecorediag" in Eclipse in a View? The diagram should not be editable. Is there a simple sample view that loads a diagram from say "/home/diagrams/test.ecorediag"
Whitecat
  • 3,882
  • 7
  • 48
  • 78
1
vote
1 answer

How to generate a GMF diagram from another GMF diagram?

Let's say, I have an Ecore model A (containing ClassP, ClassQ) for which I generated a graphical editor using GMF. Now, I have another Ecore model B wich is a superset of model A. Say, it has ClassX, ClassY, ClassP, ClassQ. What I want to do is, to…
user1471910
  • 67
  • 1
  • 7
1
vote
1 answer

How to create uml class diagram and notations by programming?

Package model = UMLFactory.eINSTANCE.createPackage(); model.setName("MyPackage"); Class cls = model.createOwnedClass("MyClass", false); I created some uml2 models by code above, now I want to create a class diagram and some notations for…
zhang jy
  • 31
  • 1
  • 5
0
votes
1 answer

Graphical Modelling Framework does not work with Eclipse Indigo

I am following the GMF Tutorial in Eclipse Indigo, MacOSX. The following error occurred in the step to create the generator model: mindmap.gmfgen. In Eclipse Helios, there is no problem at all. I am new to GMF, please help me fix it! Errors while…
fx.
  • 1,217
  • 3
  • 10
  • 17
0
votes
1 answer

Generate graphical representation of an XMI file

Is there an API that can give us the possibility to generate graphical representations from a given XMI file (which is an instantiation of an Ecore file (meta-model))?
Bouanani Meher
  • 107
  • 1
  • 3
  • 13
0
votes
1 answer

Eclipse automatically imports superclass for a subclass statement

I have a Parent class(from GMF to be specific) with static initializer method initDefaults public Class Parent{ public static initDefaults(){ ... } } I have a custom child class that extends the Parent class public Class CustomSubclass…
manohar_b
  • 23
  • 7
0
votes
0 answers

In eclipse Graphical Modelling Framework Editor, How to disable a certain context menu for a Dialog Node?

In eclipse Graphical Modelling Framework Editor, How to disable a certain context menu for a Dialog Node? I want to disable 'Duplicate' menu within 'Edit' menu I tried going through eclipse forums and internet. But nothing worked for me
0
votes
1 answer

How to allow a view to listen to selection of other views?

I'm developing a plugin with EMF and GMF. It has two views and I want that when one element is selected in the first one the second is refreshed. Actually I used this command: getViewSite().getPage().addSelectionListener(this); But it allows me to…
Maverik
  • 2,358
  • 6
  • 34
  • 44
0
votes
1 answer

What is this error Phantom nodes that are not targeted by a link mapping representing containment reference present in model

When i am generating gmfgen model from gmfmap this error validation is shown." Phantom nodes that are not targeted by a link mapping representing containment reference present in model. " What is the solution of it?
Eshika
  • 321
  • 1
  • 8
  • 20
0
votes
2 answers

Serialize Eclipse Graphical Models (e.g. BPMN Diagram) to XML

I'm working on a project where I have to build a graphical process modeler for a proprietary BPM (business process management) system made in java. I'm mentioning that the software is proprietary because it does not follow ANY international…
0
votes
1 answer

How to identify top node references in GMF editors

I'm developing a graphical editor using Eclipse GMF.The model is developed from a xml schema. According to the schema A,B,C,D elements are included in element E and E is included in element F.I have map F for the canvas in model declarations. I'm…
pavithraCS
  • 709
  • 6
  • 23
0
votes
3 answers

Starting with Eclipse GMF

I'm new to Eclipse GMF and I was able to complete the mind map tutorial successfully. After that, I started developing a graphical editor using it.I've generated the domain model using a XML schema. Now I need to develop graphical, tooling and…
pavithraCS
  • 709
  • 6
  • 23
0
votes
1 answer

How to customize ArrangeAll action or is it better to wright our own

After an import of project from an ASCII file, the later is transformed into nodes and connections inside a graphical Diagram, after sending the ArrangeALL request and executing the action, the diagram seems to arrange all Blocks first left to right…
user11147106
0
votes
1 answer

Context Sensitive help for AbstractGraphicalEditPart(GMF)

the problem is simple: To add Context Sensitive Help i followed the standard steps, but once i try to link the BLOCKS to the CONTEXT IDs with SetHelp() from IWorkbenchHelpSystem. The frist argument should be either a Control(swt) or IAction. void…
user11147106