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
2
votes
0 answers

How to relayout SWT composite container when FigureCanvas is changed?

I'm using org.eclipse.gef.ui.parts.ScrollingGraphicalViewer. When I add an editpart in the model scroll bars appears around GEF canvas. My parent control (SWT composite) could extend to contain whole canvas, but it doesn't get any notifications from…
Basilevs
  • 22,440
  • 15
  • 57
  • 102
2
votes
1 answer

Adding zest libraries to Eclipse 4 app

I am new to both Zest and Eclipse e4 development. My aim for the moment is to build a simple app and in one of its views to visualize a graph using Zest. So I am following this tutorial and I ended up with a simple working app consisting of one main…
Wosh
  • 1,565
  • 2
  • 17
  • 30
2
votes
2 answers

GEF : automatic scrolling during drag and drop

I have a graphical editor written with GEF. In this editor it's possible to drag and drop elements around and create connection by dragging and dropping on specific anchor points. Everything works fine, except that the diagram does not automatically…
Simone Gianni
  • 11,426
  • 40
  • 49
2
votes
1 answer

Eclipse Zest for DOT plugin doesn't render shapes and colors

I'm having a little trouble with the Eclipse Kepler zest2 plugin - it doesn't render the DOT graph's style and shape attributes at all. I mean, if I give a DOT graph to the plugin, it doesn't reflect the node colors and shapes, whereas if I run it…
Vahan
  • 45
  • 8
2
votes
1 answer

How to drag and drop figures from palette into GEF editor?

I am working on GEF project.In that project I want to drag and drop figures from palette into GEF editor. I tried by adding some listeners but still I am not able to drag and drop. This is my code: public class OPMGraphicalEditor extends…
user123
  • 33
  • 1
  • 7
2
votes
1 answer

Why GEF ? At what point of time i have to use GEF

Am in the start process of devloping an eclipse plugin for workflow drawing. now i have to understand the architure of eclipse plugin.I would like to know about difference/relationship between GEF ,EMF and GMF what is the latest tech to go as of…
Anbu
  • 953
  • 3
  • 10
  • 16
2
votes
1 answer

GEF + EMF: Why doesn't my editor remove the Figure for a removed object when refreshChildren() is called?

I have implemented a GEF editor for a graph-like EMF model, with a remove command for a certain type of node in the graph. I think I've done all the necessary steps in order to make this set up work (vainolo's blog has been a great help). However,…
s.d
  • 4,017
  • 5
  • 35
  • 65
2
votes
1 answer

How to remove a model object from an EMF model and its GEF Editor via Adapter

This question is principally a follow-up to my question about EMF listening mechanisms. So, I have a third-party EMF model (uneditable) which is based on a generic graph model. The structure is as follows: Project | ItemGraph | …
s.d
  • 4,017
  • 5
  • 35
  • 65
2
votes
1 answer

How to render graphical to JPG from Eclipse Zest

I have implemented the model visualisation using Eclipse Zest Toolkit. Now I want to save the visual model into JPEG image. How can I achieve this goal? EDITED: I have tried implementing the code mentioned here. But the captured image is cropped…
Agung Pratama
  • 3,666
  • 7
  • 36
  • 77
2
votes
1 answer

Connect marker with EditPart

I have a graphical editor which extends GraphicalEditorWithFlyoutPalette. There could be appear different markers, so it would be nice, if there is any possibility to connect the marker with the EditPart. I think one possibility is to extend the…
CSchulz
  • 10,882
  • 11
  • 60
  • 114
2
votes
3 answers

eclipse popup window

How can I create popup window similar to the window used in eclipse jdt for javadoc. I need to show additional info when mouse hovers over a graph node.
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
1
vote
2 answers

How to extend an EMF-based model with listeners for use in a GEF editor?

I am creating an Eclipse RCP with a GEF editor and an EMF-based model. One thing that is mentioned about the model in the GEF Book is The model should broadcast all state changes via listeners so that the view can be updated without the model…
s.d
  • 4,017
  • 5
  • 35
  • 65
1
vote
1 answer

drawing framework in java

I'm looking for a java 2d drawing framework. I'm building an application in which you load an image, and you should be able to draw on top of the image. But everything which is drawn should be selectable, modifiable, have properties etc. Actually…
Nicolas Mommaerts
  • 3,207
  • 4
  • 35
  • 55
1
vote
2 answers

One EditPart for all model views (in GMF/GEF)

We're working on creating a modeling tool based on the GMF framework and tools. We have a requirement to allow users to add views (figures) at runtime and use them in their diagrams. We will be using SVG files to represent figures. What's the…
Jaffer
  • 745
  • 1
  • 9
  • 20
1
vote
2 answers

Eclipse Draw2d. Changing z order for IFigure

I am working through the examples in 'The Eclipse Graphical Framework (GEF)' book and the included Genealogy example(Draw2d chapters) seems to have the z order of figures messed up. When a figure is dragged or selected its z order remains…
Mr1159pm
  • 774
  • 1
  • 10
  • 21
1 2
3
16 17