eclipse-gef

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

孤街浪徒 提交于 2020-01-04 14:17:05
问题 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, when I'm deleting a model element, the view doesn't get refreshed , i.e., the figure for the model element isn't removed from the editor view, and I have no idea why. I'd be extremely grateful if somebody could have a look at my sources and point me

Eclipse Contextual Help

梦想与她 提交于 2020-01-01 05:42:08
问题 Now can I register contextual help in an Eclipse WizardDialog/Editor. 1) I created a help_contexts.xml file. <?xml version="1.0" encoding="UTF-8"?> <?NLS TYPE="org.eclipse.help.contexts"?> <contexts> <context id="my.plugin.help.general" > <description>test</description> <topic label="test" href="http://domain.com/help.html"/> </context> </contexts> 2) I referenced this file in my plugin.xml <extension point="org.eclipse.help.contexts"> <contexts file="help_contexts.xml" plugin="my.plugin

Adding zest libraries to Eclipse 4 app

笑着哭i 提交于 2019-12-24 05:04:35
问题 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 window split in 3 parts. Now I want to display a graph in one of the parts. In order to do that I have downloaded the whole GEF framework into my Eclipse from here using the "Install New Software" feature of Eclipse. So far so good. Next I try to

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

蓝咒 提交于 2019-12-11 04:12:40
问题 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 having any direct knowledge of the controller or view. In the book's example, each model element class, e.g., Person , Marriage , etc. (the example is a genealogy editor), has methods to add and remove the respective listener, e.g., for Person the are:

How to add a double-click listener to my GEF editor?

倾然丶 夕夏残阳落幕 提交于 2019-12-01 03:45:39
I'm using GEF. I have a graphical editor with some "boxes" implemented. Now, I want to add a double-click listener to each box (Rectangle). I tried to add a listener to the GraphicalViewer but it did not work. vainolo In the GraphicalEditPart of the "box" for which you want to add the listener, you have to override the performRequest(Request req) method. When the framework identifies a double-click on the part's figure, it calls this method with a request that has req.getType()==RequestConstants.REQ_OPEN . You can take over from here. Complete code to test that his works: @Override public void

How to add a double-click listener to my GEF editor?

旧街凉风 提交于 2019-12-01 00:47:33
问题 I'm using GEF. I have a graphical editor with some "boxes" implemented. Now, I want to add a double-click listener to each box (Rectangle). I tried to add a listener to the GraphicalViewer but it did not work. 回答1: In the GraphicalEditPart of the "box" for which you want to add the listener, you have to override the performRequest(Request req) method. When the framework identifies a double-click on the part's figure, it calls this method with a request that has req.getType()==RequestConstants