How to add entry to ContextMenu for element on PropertySheet? [message #71137] |
Mon, 17 March 2003 20:35  |
Eclipse User |
|
|
|
Originally posted by: timmerin.singnet.com.sg
I'm developing a PropertySheet in addition to using GEF. I'm trying to add
an entry to the ContextMenu for the elements on a PropertySheet.
So far, i store information about the elements using IPropertySource. Does
anyone know how to go about it?
Thanks.
Joanie
|
|
|
|
Re: How to add entry to ContextMenu for element on PropertySheet? [message #71243 is a reply to message #71202] |
Tue, 18 March 2003 04:22  |
Eclipse User |
|
|
|
Originally posted by: timmerin.singnet.com.sg
Thanks for your reply.
The propertySheet exists, from the propertysheet plugin example. I just
implemented the elements i need that is associated with an object.
So for example if my object has a name, i implemented a "Name" class that
implements IPropertySource and serializable.
Currently, upon selecting an entry on the PropertySheet (and right
clicking), i get a context menu with a single item "Copy" so how do i
extend the menu to add further items like "Remove Element"?
Randy Hudson wrote:
> Are you writing your own propertysheet, or just a context menu on the
> existing propertysheet?
> The model in the Propertysheet is a IPropertySheetEntry, not
> IPropertySource. A propertysheet "entry" encapsulates multiple selection.
> "Joanie Goh" <timmerin@singnet.com.sg> wrote in message
> news:b55t57$npo$1@rogue.oti.com...
> > I'm developing a PropertySheet in addition to using GEF. I'm trying to add
> > an entry to the ContextMenu for the elements on a PropertySheet.
> > So far, i store information about the elements using IPropertySource. Does
> > anyone know how to go about it?
> >
> > Thanks.
> > Joanie
> >
> >
> >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.07008 seconds