Skip to main content



      Home
Home » Eclipse Projects » GEF » Pop up menu with IFigure
Pop up menu with IFigure [message #60931] Fri, 31 January 2003 10:27 Go to next message
Eclipse UserFriend
Originally posted by: OscarMartin.es.ibm.com

Hello

I need to create a popup menu for a Figure object inside an IEditorPart.
In the createPartControl of the editor
I am following the example about pop-up menusin the documentation but it
does not seem to work.
Re: Pop up menu with IFigure [message #60955 is a reply to message #60931] Fri, 31 January 2003 10:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: OscarMartin.es.ibm.com

Sorry for the previous mesage. This is the right one :)

Hello

I need help associating a pop-up menu with a IFigure object.

I have been following the example in the documentation about how to create a
pop-up menu. The problem is that I know how to register the menu with a
composite, using the "setMenu" method of Control, but I don
Re: Pop up menu with IFigure [message #60978 is a reply to message #60955] Fri, 31 January 2003 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Figures are not designed to host popup menus.

In GEF, Figures are not meant to be the "interesting" objects. EditParts
are.
The recommended way to do this is to have a single popup menu for the
Viewers. The popup is built based on the currently selected EditParts. If
you right-click on a Figure, the EditPart will get selected first, followed
by the Menu's being shown. See ContextMenuProvider.

"Oscar Martin" <OscarMartin@es.ibm.com> wrote in message
news:b1e3kg$noh$1@rogue.oti.com...
> Sorry for the previous mesage. This is the right one :)
>
> Hello
>
> I need help associating a pop-up menu with a IFigure object.
>
> I have been following the example in the documentation about how to create
a
> pop-up menu. The problem is that I know how to register the menu with a
> composite, using the "setMenu" method of Control, but I don
Re: Pop up menu with IFigure [message #61284 is a reply to message #60978] Mon, 03 February 2003 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: OscarMartin.es.ibm.com

Hi

Thank you for your help

My problem is more complex: the figure i want the context menu to be for is
inside another figure :
I have a "main" Figure which represents a flow chart. Every state in that
flow chart is another Figure and I want to use popup menu with those
states...

Cheers


"Randy Hudson" <none@us.ibm.com> wrote in message
news:b1e423$o39$1@rogue.oti.com...
> Figures are not designed to host popup menus.
>
> In GEF, Figures are not meant to be the "interesting" objects. EditParts
> are.
> The recommended way to do this is to have a single popup menu for the
> Viewers. The popup is built based on the currently selected EditParts.
If
> you right-click on a Figure, the EditPart will get selected first,
followed
> by the Menu's being shown. See ContextMenuProvider.
>
> "Oscar Martin" <OscarMartin@es.ibm.com> wrote in message
> news:b1e3kg$noh$1@rogue.oti.com...
> > Sorry for the previous mesage. This is the right one :)
> >
> > Hello
> >
> > I need help associating a pop-up menu with a IFigure object.
> >
> > I have been following the example in the documentation about how to
create
> a
> > pop-up menu. The problem is that I know how to register the menu with a
> > composite, using the "setMenu" method of Control, but I don
Re: Pop up menu with IFigure [message #61386 is a reply to message #61284] Mon, 03 February 2003 08:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

There is one popup menu for the EditPartViewer, and when it is shown, you
build its entries based on the selection. The Logic example shows slightly
different popup menu based on what is selected.

"Oscar Martin" <OscarMartin@es.ibm.com> wrote in message
news:b1laa8$c1i$1@rogue.oti.com...
> Hi
>
> Thank you for your help
>
> My problem is more complex: the figure i want the context menu to be for
is
> inside another figure :
> I have a "main" Figure which represents a flow chart. Every state in that
> flow chart is another Figure and I want to use popup menu with those
> states...
>
> Cheers
>
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:b1e423$o39$1@rogue.oti.com...
> > Figures are not designed to host popup menus.
> >
> > In GEF, Figures are not meant to be the "interesting" objects.
EditParts
> > are.
> > The recommended way to do this is to have a single popup menu for the
> > Viewers. The popup is built based on the currently selected EditParts.
> If
> > you right-click on a Figure, the EditPart will get selected first,
> followed
> > by the Menu's being shown. See ContextMenuProvider.
> >
> > "Oscar Martin" <OscarMartin@es.ibm.com> wrote in message
> > news:b1e3kg$noh$1@rogue.oti.com...
> > > Sorry for the previous mesage. This is the right one :)
> > >
> > > Hello
> > >
> > > I need help associating a pop-up menu with a IFigure object.
> > >
> > > I have been following the example in the documentation about how to
> create
> > a
> > > pop-up menu. The problem is that I know how to register the menu with
a
> > > composite, using the "setMenu" method of Control, but I don
Re: Pop up menu with IFigure [message #61714 is a reply to message #61284] Tue, 04 February 2003 02:35 Go to previous message
Eclipse UserFriend
Hi Oscar,

I had a similar problem, I solved it in that way that the subfigures are no
more subfigures in gef but are in the same gef hierachie like the parent,
than you can select the subfigure the same way like the parent. I also had
problems with the clipping of the parent which was also solved by this
aproach. the only thing is when moving the parent you have to move the
childs manually, in the other case it's done together with the parent.

Dieter

"Oscar Martin" <OscarMartin@es.ibm.com> schrieb im Newsbeitrag
news:b1laa8$c1i$1@rogue.oti.com...
> Hi
>
> Thank you for your help
>
> My problem is more complex: the figure i want the context menu to be for
is
> inside another figure :
> I have a "main" Figure which represents a flow chart. Every state in that
> flow chart is another Figure and I want to use popup menu with those
> states...
>
> Cheers
>
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:b1e423$o39$1@rogue.oti.com...
> > Figures are not designed to host popup menus.
> >
> > In GEF, Figures are not meant to be the "interesting" objects.
EditParts
> > are.
> > The recommended way to do this is to have a single popup menu for the
> > Viewers. The popup is built based on the currently selected EditParts.
> If
> > you right-click on a Figure, the EditPart will get selected first,
> followed
> > by the Menu's being shown. See ContextMenuProvider.
> >
> > "Oscar Martin" <OscarMartin@es.ibm.com> wrote in message
> > news:b1e3kg$noh$1@rogue.oti.com...
> > > Sorry for the previous mesage. This is the right one :)
> > >
> > > Hello
> > >
> > > I need help associating a pop-up menu with a IFigure object.
> > >
> > > I have been following the example in the documentation about how to
> create
> > a
> > > pop-up menu. The problem is that I know how to register the menu with
a
> > > composite, using the "setMenu" method of Control, but I don
Previous Topic:where are the figures?
Next Topic:Connections and their parent
Goto Forum:
  


Current Time: Sun Jul 13 07:52:01 EDT 2025

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

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

Back to the top