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 04:49 Go to next message
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 13:27 Go to previous messageGo to next message
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 04:20 Go to previous message
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
> >
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 18 06:43:38 EDT 2014

Powered by FUDForum. Page generated in 0.02976 seconds