Skip to main content



      Home
Home » Eclipse Projects » GEF » How to add entry to ContextMenu for element on PropertySheet?
How to add entry to ContextMenu for element on PropertySheet? [message #71137] Mon, 17 March 2003 20:35 Go to next message
Eclipse UserFriend
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 #71202 is a reply to message #71137] Mon, 17 March 2003 22:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

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
>
>
>
>
>
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 Go to previous message
Eclipse UserFriend
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
> >
> >
> >
> >
> >
Previous Topic:how to hide some visual figure
Next Topic:Request and Factory
Goto Forum:
  


Current Time: Mon Jul 14 06:43:56 EDT 2025

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

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

Back to the top