Save the progress of a Model [message #1745597] |
Wed, 12 October 2016 22:34  |
Eclipse User |
|
|
|
Is there any way to save the progress of a model using code (JAVA)?
All methods ask me a IProgresMonitor and i do not know how to get it.
|
|
|
Re: Save the progress of a Model [message #1745625 is a reply to message #1745597] |
Thu, 13 October 2016 14:21   |
Eclipse User |
|
|
|
What do you want to achieve exactly? The IProgresMonitor in Eclipse is used to display a progress bar for long running tasks inside the Eclipse IDE. Saving the model is not such a long running task.
|
|
|
Re: Save the progress of a Model [message #1745631 is a reply to message #1745625] |
Thu, 13 October 2016 15:35   |
Eclipse User |
|
|
|
hello, add items (task, starte vent, end event, ...) to a model using code (JAVA), these items appear in the Outline but not shown graphically, when I update it, does not show, then I want save and update the model. To see the modified model.
(sorry, i use google translator)
|
|
|
|
|
Re: Save the progress of a Model [message #1745908 is a reply to message #1745647] |
Wed, 19 October 2016 08:43   |
Eclipse User |
|
|
|
So... do you need
BPMN2Editor activeEditor = BPMN2Editor.getActiveEditor();
activeEditor.doSave(new NullProgressMonitor());
?
I don't really understand your problem else.
Of course you can use a ProgressMonitor other than NullProgressMonitor, this is just a simple one which does not have too much functionality, but enough for a short running task.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04470 seconds