Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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
Eclipse UserFriend
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 #294374 is a reply to message #294361] Thu, 10 November 2005 20:36 Go to previous messageGo to next message
Markus Wolf is currently offline Markus WolfFriend
Messages: 153
Registered: July 2009
Senior Member
> 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
>
Re: Process-dependant perspectives and views [message #294405 is a reply to message #294374] Fri, 11 November 2005 12:04 Go to previous messageGo to next message
Eclipse UserFriend
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
> >
Re: Process-dependant perspectives and views [message #294448 is a reply to message #294405] Fri, 11 November 2005 18:09 Go to previous messageGo to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Do you override the "public void initialize (IWorkbenchConfigurer
configuer)" in your WorkbenchWindowAdvisor ?
try this code : configurer.setSaveandRestore(true) depending on what you
want.
Stephane


Fuad Abinader wrote:
> 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
>
>

--
Re: Process-dependant perspectives and views [message #294470 is a reply to message #294448] Sat, 12 November 2005 15:01 Go to previous message
Markus Wolf is currently offline Markus WolfFriend
Messages: 153
Registered: July 2009
Senior Member
Stephane, did you ever read the entire post?
This is was Fuad said above:
>>>> application was restarted? I mean, I would not need to give up on
>>>> the saving and restoring feature for the "static" perspective and


--
>
> 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
>
Previous Topic:Jar creation errors
Next Topic:How to insert
Goto Forum:
  


Current Time: Fri Aug 16 23:28:39 GMT 2024

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

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

Back to the top