| model update problem [message #1238490]
||Sat, 01 February 2014 14:15
| Sunghyun Mising name
Registered: December 2010
I am relatively new to GEF and|
I have been practicing it using
This tutorial is very nice, but I need to iterate over the nodes within
model, in my case named "FlowChart"
public class KnowledgeEditor extends GraphicalEditorWithFlyoutPalette implements IApplication, IWorkbenchWindowActionDelegate
public static final String ID = "hdssrulebasebuilder.mygraphicaleditor";
private FlowChart model = new FlowChart();
private KeyHandler keyHandler;
private boolean editorSaving = false;
private OutlinePage outlinePage;
When I close the workbench, it asks me whether to save the change on the view,
when the getModel() inside doSave() method return updated model,
but when I use it inside run() method,
it does not return updated model, although seemingly it comes from the
same method getModel. ( -> List<Node> nodeList = getModel().getChildrenArray(); )
So here is my question.
What's the difference between "getModel() inside run()" and "getModel() inside doSave()?
Would you please be kind to take some seconds of look at my code for advice?
I've attached the whole RCP plug-in project I am working on.
KnowledgeEditor.java has getModel() method which
return empty list when called inside run(),
but return updated(to view) model when called inside doSave().
[Updated on: Sat, 01 February 2014 14:59]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01865 seconds