Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » pb with IWorkbenchPage
pb with IWorkbenchPage [message #19741] Mon, 28 April 2003 15:20 Go to next message
Eclipse UserFriend
Originally posted by: anthony.saucet.freesbee.fr

I've created a perspective using IPerspectiveFactory, but I need to launch
some views when choosing an action in the menuBar .
I think I need to create a class implementing IWorkbenchPage and then use
some methods like activate(IWorkbenchPart part) or showView(String viewId)
to launch the required view.
-But how to link my perspective with this class ? with the
setPerspective(IPerspectiveDescriptor perspective) method ?
-how to refresh a view when needed (clicking on a button or by listeners) ?

thx
anthony
Re: pb with IWorkbenchPage [message #19874 is a reply to message #19741] Mon, 28 April 2003 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

How are you contributing your actions to the menu bar? What interface are
they implementing? Actions are usually given enough context to determine the
workbench page they are running inside of. You do not (must not) implement
the IWorkbenchPage interface.

Simon :-)

"anthony saucet" <anthony.saucet@freesbee.fr> wrote in message
news:b8jgs6$32c$1@rogue.oti.com...
> I've created a perspective using IPerspectiveFactory, but I need to launch
> some views when choosing an action in the menuBar .
> I think I need to create a class implementing IWorkbenchPage and then use
> some methods like activate(IWorkbenchPart part) or showView(String viewId)
> to launch the required view.
> -But how to link my perspective with this class ? with the
> setPerspective(IPerspectiveDescriptor perspective) method ?
> -how to refresh a view when needed (clicking on a button or by listeners)
?
>
> thx
> anthony
>
Re: pb with IWorkbenchPage [message #19981 is a reply to message #19874] Mon, 28 April 2003 15:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anthony.saucet.freesbee.fr

In the perspective I've created a menuBar via the manifest. When an
menuItem (action) is selected, I would like a view to be created/launched,
containing specific info. Now, I'm launching the view via Windows > Show
view > myView.
how can I do the same using my menuBar item ?

anthony


Simon Arsenault wrote:

> How are you contributing your actions to the menu bar? What interface are
> they implementing? Actions are usually given enough context to determine the
> workbench page they are running inside of. You do not (must not) implement
> the IWorkbenchPage interface.

> Simon :-)

> "anthony saucet" <anthony.saucet@freesbee.fr> wrote in message
> news:b8jgs6$32c$1@rogue.oti.com...
> > I've created a perspective using IPerspectiveFactory, but I need to launch
> > some views when choosing an action in the menuBar .
> > I think I need to create a class implementing IWorkbenchPage and then use
> > some methods like activate(IWorkbenchPart part) or showView(String viewId)
> > to launch the required view.
> > -But how to link my perspective with this class ? with the
> > setPerspective(IPerspectiveDescriptor perspective) method ?
> > -how to refresh a view when needed (clicking on a button or by listeners)
> ?
> >
> > thx
> > anthony
> >
Re: pb with IWorkbenchPage [message #20473 is a reply to message #19981] Mon, 28 April 2003 16:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

How are you contributing your action to the menu bar? That is, tell me what
extension point you are using.

Simon :-)

"anthony saucet" <anthony.saucet@freesbee.fr> wrote in message
news:b8jij5$4sk$1@rogue.oti.com...
> In the perspective I've created a menuBar via the manifest. When an
> menuItem (action) is selected, I would like a view to be created/launched,
> containing specific info. Now, I'm launching the view via Windows > Show
> view > myView.
> how can I do the same using my menuBar item ?
>
> anthony
>
>
> Simon Arsenault wrote:
>
> > How are you contributing your actions to the menu bar? What interface
are
> > they implementing? Actions are usually given enough context to determine
the
> > workbench page they are running inside of. You do not (must not)
implement
> > the IWorkbenchPage interface.
>
> > Simon :-)
>
> > "anthony saucet" <anthony.saucet@freesbee.fr> wrote in message
> > news:b8jgs6$32c$1@rogue.oti.com...
> > > I've created a perspective using IPerspectiveFactory, but I need to
launch
> > > some views when choosing an action in the menuBar .
> > > I think I need to create a class implementing IWorkbenchPage and then
use
> > > some methods like activate(IWorkbenchPart part) or showView(String
viewId)
> > > to launch the required view.
> > > -But how to link my perspective with this class ? with the
> > > setPerspective(IPerspectiveDescriptor perspective) method ?
> > > -how to refresh a view when needed (clicking on a button or by
listeners)
> > ?
> > >
> > > thx
> > > anthony
> > >
>
>
>
>
>
Re: pb with IWorkbenchPage [message #21793 is a reply to message #20473] Tue, 29 April 2003 07:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anthony.saucet.freesbee.fr

I define the action via 'org.eclipse.ui.actionSets'.
anthony


Simon Arsenault wrote:

> How are you contributing your action to the menu bar? That is, tell me what
> extension point you are using.

> Simon :-)

> "anthony saucet" <anthony.saucet@freesbee.fr> wrote in message
> news:b8jij5$4sk$1@rogue.oti.com...
> > In the perspective I've created a menuBar via the manifest. When an
> > menuItem (action) is selected, I would like a view to be created/launched,
> > containing specific info. Now, I'm launching the view via Windows > Show
> > view > myView.
> > how can I do the same using my menuBar item ?
> >
> > anthony
> >
> >
> > Simon Arsenault wrote:
> >
> > > How are you contributing your actions to the menu bar? What interface
> are
> > > they implementing? Actions are usually given enough context to determine
> the
> > > workbench page they are running inside of. You do not (must not)
> implement
> > > the IWorkbenchPage interface.
> >
> > > Simon :-)
> >
> > > "anthony saucet" <anthony.saucet@freesbee.fr> wrote in message
> > > news:b8jgs6$32c$1@rogue.oti.com...
> > > > I've created a perspective using IPerspectiveFactory, but I need to
> launch
> > > > some views when choosing an action in the menuBar .
> > > > I think I need to create a class implementing IWorkbenchPage and then
> use
> > > > some methods like activate(IWorkbenchPart part) or showView(String
> viewId)
> > > > to launch the required view.
> > > > -But how to link my perspective with this class ? with the
> > > > setPerspective(IPerspectiveDescriptor perspective) method ?
> > > > -how to refresh a view when needed (clicking on a button or by
> listeners)
> > > ?
> > > >
> > > > thx
> > > > anthony
> > > >
> >
> >
> >
> >
> >
Re: pb with IWorkbenchPage [message #22548 is a reply to message #21793] Tue, 29 April 2003 15:27 Go to previous message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

See my reply to your other post

Simon :-)

"anthony saucet" <anthony.saucet@freesbee.fr> wrote in message
news:b8l979$c83$1@rogue.oti.com...
> I define the action via 'org.eclipse.ui.actionSets'.
> anthony
>
>
> Simon Arsenault wrote:
>
> > How are you contributing your action to the menu bar? That is, tell me
what
> > extension point you are using.
>
> > Simon :-)
>
> > "anthony saucet" <anthony.saucet@freesbee.fr> wrote in message
> > news:b8jij5$4sk$1@rogue.oti.com...
> > > In the perspective I've created a menuBar via the manifest. When an
> > > menuItem (action) is selected, I would like a view to be
created/launched,
> > > containing specific info. Now, I'm launching the view via Windows >
Show
> > > view > myView.
> > > how can I do the same using my menuBar item ?
> > >
> > > anthony
> > >
> > >
> > > Simon Arsenault wrote:
> > >
> > > > How are you contributing your actions to the menu bar? What
interface
> > are
> > > > they implementing? Actions are usually given enough context to
determine
> > the
> > > > workbench page they are running inside of. You do not (must not)
> > implement
> > > > the IWorkbenchPage interface.
> > >
> > > > Simon :-)
> > >
> > > > "anthony saucet" <anthony.saucet@freesbee.fr> wrote in message
> > > > news:b8jgs6$32c$1@rogue.oti.com...
> > > > > I've created a perspective using IPerspectiveFactory, but I need
to
> > launch
> > > > > some views when choosing an action in the menuBar .
> > > > > I think I need to create a class implementing IWorkbenchPage and
then
> > use
> > > > > some methods like activate(IWorkbenchPart part) or showView(String
> > viewId)
> > > > > to launch the required view.
> > > > > -But how to link my perspective with this class ? with the
> > > > > setPerspective(IPerspectiveDescriptor perspective) method ?
> > > > > -how to refresh a view when needed (clicking on a button or by
> > listeners)
> > > > ?
> > > > >
> > > > > thx
> > > > > anthony
> > > > >
> > >
> > >
> > >
> > >
> > >
>
>
>
>
>
Previous Topic:Adding an external build tool
Next Topic:widget disposed error during save action
Goto Forum:
  


Current Time: Fri Dec 27 02:38:53 GMT 2024

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

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

Back to the top