How to reuse in my Eclipse RCP application progress indicators from Eclipse IDE? [message #896650] |
Thu, 19 July 2012 05:47  |
Eclipse User |
|
|
|
Hi all,
I'm writing my first Eclipse RCP application.
In my application the user loads some data. This is very time consuming task, so I execute it in a separate Job, with setUser(true). I would like to have similar behavior as in the Eclipse IDE: when the user starts some long lasting task, the dialog with a progress bar is shown, and s/he can choose there to run it as a background thread. Then it is shown in status line in the bottom of the IDE. Now the user can add more such threads, preview the progress or cancel any of them.
I have found at vogella a tutorial "Eclipse Jobs and Background Processing". As shown there, I implemented my own IProgressMonitor and attached it to the Tool Control in my Application.e4xmi. It works, but in this case I have to implements everything by my own. Is it possible to reuse in my application the module that is used by Eclipse IDE?
In Eclipse IDE Application model the relevant component has an ID org.eclipse.ui.trim.status.
Thanks for help,
Maria
|
|
|
|
Re: How to reuse in my Eclipse RCP application progress indicators from Eclipse IDE? [message #896742 is a reply to message #896710] |
Thu, 19 July 2012 10:41   |
Eclipse User |
|
|
|
Thanks for the answer.
The problem is that I would like to have not only "Run in Background" dialog, but also ProgressView defined in org.eclipse.ui.internal.progress package, progress bar, and all the functionality that they provide for managing jobs. Does it make sense to add a dependency to org.eclipse.ui.workbench plug-in to my project, and then somehow reuse ProgressView and the other classes?
I can implement this functionality from the beginning, but if it is already implemented, why not reuse it?
In the thread you pasted, there is a sentence that I don't understand:
> There is a legacy way that parts report status to the trim within the 4.2 Workbench, but that's all done at the 4.2 Workbench level, not Eclipse4.
Does it mean that I can't use Workbench in Eclipse RCP?
Regards,
MK
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: How to reuse in my Eclipse RCP application progress indicators from Eclipse IDE? [message #897051 is a reply to message #896949] |
Sat, 21 July 2012 03:51  |
Eclipse User |
|
|
|
Don't miss the chance to bring in your own usecases, ... in the discussion.
It might sound strange but you should see this as a chance and not as a
problem. You can push the framework in a direction which is good for you
and probably good for others as well ;-)
Tom
Am 20.07.12 15:48, schrieb Valerio Santinelli:
> Thanks Joseph. I guess I'll stick to keeping my Eclipse RCP project
> running against the 3.x branch. Is there any plan on a release date for
> 4.3? I understand that 4.2 is still too young to be used as the base for
> a production-ready project.
>
> Joseph Carroll wrote on Fri, 20 July 2012 15:21
>> No. There are too many issues when commingling 3.x and 4.x plugins.
>> This is an active issues that is being addressed for the 4.3 release.
>>
>> AFAIK, the jobs framework is still being worked on. There are some
>> resources available in org.eclipse.e4.core.services.work, but I do not
>> believe they represent finalized products so I might hesitate before
>> using them.
>> JD
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.11272 seconds