Home » Eclipse Projects » Eclipse Platform » Process-dependant perspectives and views
Process-dependant perspectives and views [message #294361] |
Thu, 10 November 2005 17:41 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fabinader.fpf.br
Hi all,
I have the following situation: my RCP application handles, among other
things, the execution of a background application with no GUI (in fact, the
GUI of this application is presented as a Eclipse view). This application
has one "static" perspective (i.e. will always appear, independently if
there are background processes running), where the user can select in a view
the background process to execute, and one "dynamic" perspective (which will
appear only when a certain functionality is executed), where there is the
bakcground process' GUI view. The RCP application is configured to save the
perspectives and views' states, since it is a requirement of my application
to do that for the "static" perspective and its views.
In other words, this GUI view (and the "dynamic" perspective) should
only appear if there is a running backgriound process. Since the running
processes have the same GUI view, I open one instance of the same view for
each background process, setting their secondary ID as the internal
identifier for the background process.
If I want to shut down the running background process, I simply close
its GUI view inside my RCP application, and then I have a routine to close
the perspective if the number of running background process is 0. This
feature is working quite fine, if the user always close the GUI view before
closing the RCP application.
Let me describe then the problem: if the user DON'T close the GUI view
and, instead, closes directly the RCP application, I have no means to close
both the GUI view and the "dynamic" perspective when that occurs, in a way
that it would not be opened if the RCP application is restarted. Currently,
since I've informed the platform to save and restore my RCP application
perspectives and views, when I restart the RCP application the "dynamic"
perspective and the GUI view is reopened, altgough there is no background
process running.
The question: does anybody knows a way to define that neither my
"dynamic" perspective nor my GUI view should be reloaded if the RCP
application was restarted? I mean, I would not need to give up on the saving
and restoring feature for the "static" perspective and its views, but I
would just not need it to work for the "dynamic" perspective and the GUI
view.
Thanks in advance,
Fuad Abinader
|
|
| |
Re: Process-dependant perspectives and views [message #294405 is a reply to message #294374] |
Fri, 11 November 2005 12:04 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fabinader.fpf.br
Hi Markis,
There is the IPerspectiveFactory interface which my perspective class has to
implement, and I've tried to abort the instantiation over there but it
didn't worked. Also, I've tried to abort the instantiation at the GUI View's
constructor method, and it didn't worked.
Any ideas?
[]'s
Fuad Abinader
"Markus Wolf" <markus@emedia-solutions-wolf.de> escreveu na mensagem
news:dl0b0g$5ph$1@news.eclipse.org...
>> The question: does anybody knows a way to define that neither my
>> "dynamic" perspective nor my GUI view should be reloaded if the RCP
>> application was restarted? I mean, I would not need to give up on the
>> saving and restoring feature for the "static" perspective and its views,
>> but I would just not need it to work for the "dynamic" perspective and
>> the GUI view.
> Just an idea, but I know not for sure. If you have an editor and close the
> application, then reopen and also reopen the editor a ElementFactory is
> executed.
> Maybe some thing like this ElementFactory also is available for views and
> you could stop reopening with that.
>
> Markus Wolf
> --
> >
> > emedia-solutions wolf
> > Wedeler Landstrasse 63
> > 22559 Hamburg
> >
> >> phone: (+49) 40 550 083 70
> >> web: http://www.emedia-solutions-wolf.de
> >> mail: markus@emedia-solutions-wolf.de
> >> pgp: http://wwwkeys.de.pgp.net
> >
|
|
| | |
Goto Forum:
Current Time: Fri Aug 16 23:28:39 GMT 2024
Powered by FUDForum. Page generated in 0.04334 seconds
|