Home » Eclipse Projects » Eclipse Platform » Process-dependant perspectives and views
Process-dependant perspectives and views [message #294361] |
Thu, 10 November 2005 12:41  |
Eclipse User |
|
|
|
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
|
|
| | | | |
Goto Forum:
Current Time: Sat May 03 07:11:15 EDT 2025
Powered by FUDForum. Page generated in 0.03260 seconds
|