Questions tagged [eclipse-gef]

For questions about the Eclipse Graphical Editing Framework.

The Eclipse Graphical Editing Framework (GEF) provides technology to create rich graphical editors and views for the Eclipse Workbench UI.

See http://www.eclipse.org/gef/

252 questions
1
vote
0 answers

Correct way to handle copy/paste from a View into a GraphicalEditor

We're developing an application in which we handle local copy/pastes within the diagram by using the extension point org.eclipse.gmf.runtime.emf.clipboard.core.clipboardSupport Copy/Paste events of resources in views are handled using a handler with…
Protostome
  • 5,569
  • 5
  • 30
  • 45
1
vote
1 answer

Is the GEF really a MVC framework?

in the tutorials from http://www.vainolo.com/tutorials/ the position of the model is saved in the model. I want to save all data to file and want to get the same view, when I load the file. Searching for an answer for this question, I got another…
CSchulz
  • 10,882
  • 11
  • 60
  • 114
1
vote
1 answer

Eclipse GEF/draw2d Coordinate System Transformation

Can someone please explain to me how coordinate transformations work in draw2d? I have a hierarchical diagram where a figure can contain figures which also contain figures. At first I added internal figures by using the request's getLocation,…
vainolo
  • 6,907
  • 4
  • 24
  • 47
1
vote
2 answers

GEF - How to open Editor in Composite?

My name is Oleg, I'm writing advanced feature - visual comparison of BPEL files. I would like to use regular editors in "compare" panes (left and right) As a first step I just want to open two editors (one for each file) Later I can 'hack' them a…
Oleg Vazhnev
  • 23,239
  • 54
  • 171
  • 305
1
vote
1 answer

How to center a Label inside a RectangleFigure

I'm a complete newbie with draw2d, i'm trying to make some examples in order to learn how to use it... I'm trying to write a Figure which shows a Label with white background, some padding, and an enclosing grey background. For that, i wrote the…
roirodriguez
  • 1,685
  • 2
  • 17
  • 31
1
vote
2 answers

Direct edit on selected label in eclipse gef

I have two labels in an figure . by default gef allows direct editing to be performed when the user clicks the edit part. I have two labels in the same figure i have to perform direct editing on the label on which the mouse was clicked . but now…
user703834
  • 93
  • 8
1
vote
1 answer

How to add new Element/Palette Component directly in GMF .gmfgen file

I have created a entire model and then got the diagram generated code. Now I realized that I need to add more components in Palette. But I have already carried out lot of modifications in the already generated Code. So if I repeat all the steps,…
Abhishek Choudhary
  • 8,255
  • 19
  • 69
  • 128
1
vote
1 answer

Why are the GEF children not drawn when removing absolute size of container?

I try to get a simple working GEF editor. I have a GraphicalEditorWithPalette that creates my example model. I have a RootEditPart that overrides createFigure and getModelChildren like this: public class RootEditPart extends…
Arne Deutsch
  • 14,629
  • 5
  • 53
  • 72
1
vote
0 answers

How to implement a copy participant in eclipse to generate a new file along with other related files with same name within the same directory?

I'm trying to implement a copy participant and things work quite well when I copy a resource to another location. However, things does not work if I do a copy+paste into the same directory. Eclipse will happily suggest a new name for the file, but…
SSK
  • 63
  • 3
1
vote
1 answer

TextBox inside eclipse's draw2d figure

Is there any way to include a Text Box inside a draw2d figure? (a code example would be nice)
Protostome
  • 5,569
  • 5
  • 30
  • 45
1
vote
2 answers

How to create a GEF figure with separate label?

I've been trying to create a Draw2D Figure that consists of two parts - a central resizeable shape, such as a circle or rectangle, and an editable label for the bottom part. An example of this type of figure is the icon/label you see on a computer's…
Phillipus
  • 455
  • 1
  • 5
  • 14
1
vote
1 answer

how to create an editable components for GEF Eclipse

I want to create a component kind of Text Box for GEF Eclipse. I am able to create component but not able to make it editable. How to achieve the desired.
Abhishek Choudhary
  • 8,255
  • 19
  • 69
  • 128
1
vote
1 answer

How to update GEF editor if file renamed?

How to update GEF editor if file renamed? This works fine for text editors. For example in Eclipse go to Navigator, open file HelloWorld.java in editor, rename HelloWorld.java to HelloWorld2.java in Navigator. Note that editor is now updated and it…
Oleg Vazhnev
  • 23,239
  • 54
  • 171
  • 305
1
vote
1 answer

Adding label to PolylineConnection in Draw2D

I'm trying to add a label to a PolylineConnection in Draw2d. I'm using the example in java2s as a basis. The problem is that even if I can create the text by using graphics.drawText() on the paintFigure method from the PathFigure object (that…
Yampeku
  • 583
  • 1
  • 4
  • 21
1
vote
0 answers

Eclipse Oxygen report errors when I click "Sync Graphviz Export" , a button of GEF DOT plug_in

Eclipse contain a Dot Editor and graphviz Dot Graph, so I want to edit graph files with it. I download the newest Eclipe JAVA and intall all the GEF packages available in http://download.eclipse.org/tools/gef/updates/releases. After that, I edited a…
shaun
  • 21
  • 5