Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to remember opened perspectives
How to remember opened perspectives [message #207756] Tue, 09 March 2004 09:49 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
> >
Previous Topic:[RCP] I need shortcut bar for fastviews, but I don't need perspectives.
Next Topic:The New search view
Goto Forum:
  


Current Time: Fri Apr 19 19:45:10 GMT 2024

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

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

Back to the top