[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Pop up menu with IFigure

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@xxxxxxxxxx> wrote in message
news:b1e3kg$noh$1@xxxxxxxxxxxxxxxx
> 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´t know how to
> set the menu to my IFigure object which is inside a Composite
>
>
> Cheers
>
> "Oscar Martin" <OscarMartin@xxxxxxxxxx> wrote in message
> news:b1e3em$njj$1@xxxxxxxxxxxxxxxx
> > 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.
> >
> >
> >
> >
>
>