How to remember opened perspectives [message #207756] |
Tue, 09 March 2004 09:49 |
Eclipse User |
|
|
|
Originally posted by: perezmarinan.canalejo.org
Hi people.
This is my first message to this list so be gently if this answered has
been answered priorly.
I'm creating an RCP application. The app has varios perspectives. The
problem is that I want to remember the perspectives opened by the user.
I know that the perspectives can be loaded an stored with a
PerspectiveRegistry. The problem is that I don't know how to catch
callback perspective events, i.e., when a perspective is open, when a
perspective is closed, and so on.
Any help ?
Thanks for your time
Martin
|
|
|
Re: How to remember opened perspectives [message #208100 is a reply to message #207756] |
Tue, 09 March 2004 18:27 |
Eclipse User |
|
|
|
Originally posted by: sandipchitale.fairisaac.com
PlatformUI.getWorkbench().getActiveWorkbenchWindow().addPers pectiveListener(
new IPerspectiveListener() {
public void perspectiveActivated(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
}
public void perspectiveChanged(IWorkbenchPage page,
IPerspectiveDescriptor perspective, String changeId) {
}
}
);
"martin" <perezmarinan@canalejo.org> wrote in message
news:c2k3v6$1do$1@eclipse.org...
> Hi people.
>
> This is my first message to this list so be gently if this answered has
> been answered priorly.
>
> I'm creating an RCP application. The app has varios perspectives. The
> problem is that I want to remember the perspectives opened by the user.
>
> I know that the perspectives can be loaded an stored with a
> PerspectiveRegistry. The problem is that I don't know how to catch
> callback perspective events, i.e., when a perspective is open, when a
> perspective is closed, and so on.
>
> Any help ?
>
> Thanks for your time
>
> Martin
>
|
|
|
Re: How to remember opened perspectives [message #208684 is a reply to message #208100] |
Wed, 10 March 2004 09:20 |
Eclipse User |
|
|
|
Originally posted by: perezmarinanm.canalejo.org
A lot of thanks Sandip. People like you make more easy our introduction to
the difficult world of RCP development.
Martin
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().addPers pectiveListener(
> new IPerspectiveListener() {
> public void perspectiveActivated(IWorkbenchPage page,
> IPerspectiveDescriptor perspective) {
> }
> public void perspectiveChanged(IWorkbenchPage page,
> IPerspectiveDescriptor perspective, String changeId) {
> }
> }
> );
> "martin" <perezmarinan@canalejo.org> wrote in message
> news:c2k3v6$1do$1@eclipse.org...
> > Hi people.
> >
> > This is my first message to this list so be gently if this answered has
> > been answered priorly.
> >
> > I'm creating an RCP application. The app has varios perspectives. The
> > problem is that I want to remember the perspectives opened by the user.
> >
> > I know that the perspectives can be loaded an stored with a
> > PerspectiveRegistry. The problem is that I don't know how to catch
> > callback perspective events, i.e., when a perspective is open, when a
> > perspective is closed, and so on.
> >
> > Any help ?
> >
> > Thanks for your time
> >
> > Martin
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03209 seconds