Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BPMN 2.0 Modeler » Save the progress of a Model
Save the progress of a Model [message #1745597] Wed, 12 October 2016 22:34 Go to next message
Guillermo Fuentes is currently offline Guillermo FuentesFriend
Messages: 11
Registered: May 2016
Junior Member
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 Go to previous messageGo to next message
Ralph Soika is currently offline Ralph SoikaFriend
Messages: 192
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Guillermo Fuentes is currently offline Guillermo FuentesFriend
Messages: 11
Registered: May 2016
Junior Member
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 #1745646 is a reply to message #1745631] Thu, 13 October 2016 20:27 Go to previous messageGo to next message
Ralph Soika is currently offline Ralph SoikaFriend
Messages: 192
Registered: July 2009
Senior Member
Did you mean that you have written a plugin which modifies the model of a opened bpmn file, and you are searching a way to save the bpmn file from your plugin code?
Re: Save the progress of a Model [message #1745647 is a reply to message #1745646] Thu, 13 October 2016 21:15 Go to previous messageGo to next message
Guillermo Fuentes is currently offline Guillermo FuentesFriend
Messages: 11
Registered: May 2016
Junior Member
exact, that I am developing
Re: Save the progress of a Model [message #1745908 is a reply to message #1745647] Wed, 19 October 2016 08:43 Go to previous messageGo to next message
Kai Rosswag is currently offline Kai RosswagFriend
Messages: 8
Registered: April 2016
Junior Member
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.
Re: Save the progress of a Model [message #1746045 is a reply to message #1745908] Thu, 20 October 2016 18:59 Go to previous message
Guillermo Fuentes is currently offline Guillermo FuentesFriend
Messages: 11
Registered: May 2016
Junior Member
thanks, but NullProgressMonitor makes fail to eclipse.
Previous Topic:Problem I/O Parameter.
Next Topic:Latest Stable Channel
Goto Forum:
  


Current Time: Thu Apr 25 06:31:12 GMT 2024

Powered by FUDForum. Page generated in 0.03629 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top