|
Re: Diagram sirius and progress bar [message #1804598 is a reply to message #1804550] |
Fri, 29 March 2019 08:35 |
|
Hi Labine,
It seems that a good way would be to change the PaletteManagerImpl which is created in the DDiagramEditorImpl.hookGraphicalViewer(), but then this would require to try to override/replace the declaration of the diagram editor provided by Sirius. I suggest you to create a bug (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius) to expose the issue, a solution might be to open some way to configure the tools creation more easily or to use a progress monitor directly form Sirius.
On the other hand, you should try to declare and use your own progress monitor from your tool implementation, I suppose you use a java service to load your data, this would allow you to explicitly choose your progress steps and labels. You might try to encapsulate the long time operation in a org.eclipse.jface.operation.IRunnableWithProgress and pass it to a org.eclipse.jface.dialogs.ProgressMonitorDialog which will run it in your java service.
Regards
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03780 seconds