swt widgets above the editparts [message #9316] |
Mon, 10 June 2002 10:22  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.07383 seconds