Skip to main content



      Home
Home » Eclipse Projects » GEF » swt widgets above the editparts
swt widgets above the editparts [message #9316] Mon, 10 June 2002 10:22 Go to next message
Eclipse UserFriend
Hi,
i'd like to do something that acts like a context menu. i want to be able
to show an swt widget (Combo).
what i'm trying to do is to allow the user to select the connection tool
and then, when the user selects either the target or the source editpart,
a combo will pop-up and show the list of all the terminals.
is it possible, and if so, what are the mechanisms in GEF to allow it?
thanks
yoav
Re: swt widgets above the editparts [message #9456 is a reply to message #9316] Mon, 10 June 2002 13:29 Go to previous message
Eclipse UserFriend
Originally posted by: none.ibm.com

Subclass one of the connecionCreationTools and override
performCreateConnection().

If you need this on both ends of the connection, you'll have to override
handleButtonPressed(int) also, and check the Tool's state.

Displaying the combo is your job ;-). You can use a Shell(SWT.NO_TRIM).

I personally thing this is a little confusing VA-Java used context menus,
with the most common terminals on the menu, and a "More..." option that
opens a dialog.

"Yoav Rubin" <yoav@il.ibm.com> wrote in message
news:ae2cni$2jr$1@rogue.oti.com...
> Hi,
> i'd like to do something that acts like a context menu. i want to be able
> to show an swt widget (Combo).
> what i'm trying to do is to allow the user to select the connection tool
> and then, when the user selects either the target or the source editpart,
> a combo will pop-up and show the list of all the terminals.
> is it possible, and if so, what are the mechanisms in GEF to allow it?
> thanks
> yoav
>
Previous Topic:How to delete a figure?
Next Topic:Weird CreationTool behaviour
Goto Forum:
  


Current Time: Tue Apr 29 01:03:34 EDT 2025

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

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

Back to the top