Pop up menu with IFigure [message #60931] |
Fri, 31 January 2003 10:27  |
Eclipse User |
|
|
|
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 #61714 is a reply to message #61284] |
Tue, 04 February 2003 02:35  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03676 seconds