List box in the canvas [message #104931] |
Mon, 19 February 2007 08:54  |
Eclipse User |
|
|
|
Originally posted by: kalin.nakov.gmail.com
Hi,
I want to show a listbox inside the canvas from
CreateElementCommand::doDefaultElementCreation() - I have a class which
overrides this method. What I want is something like the name completion
feature in the java editor of eclipse - when you type "this." shows a
list of available methods. There are several problems I have:
1) How can I obtain the shell of the canvas from this method? I couldn't
find any method which could help me with this.
2) Once I have the shell object, how can I obtain the current
coordinates of the point where I clicked with the mouse to invoke the
creation command?
I know these questions are partly for the eclipse swt newsgroup, but are
also very connected to gmf so I ask here.
Thanks in advance,
Kalin
|
|
|
Re: List box in the canvas [message #104970 is a reply to message #104931] |
Mon, 19 February 2007 10:32  |
Eclipse User |
|
|
|
Originally posted by: vcciubot.uwaterloo.ca
Take a look at TextDirectEditManager and its superclass. They position a
cell editor on the canvas. These use an older framework for autocomplete.
The latest one is well documented in the eclipse programmer manual.
On Mon, 19 Feb 2007 15:54:49 +0200, Kalin Nakov
wrote:
> Hi,
>
> I want to show a listbox inside the canvas from
> CreateElementCommand::doDefaultElementCreation() - I have a class which
> overrides this method. What I want is something like the name completion
> feature in the java editor of eclipse - when you type "this." shows a
> list of available methods. There are several problems I have:
>
> 1) How can I obtain the shell of the canvas from this method? I couldn't
> find any method which could help me with this.
> 2) Once I have the shell object, how can I obtain the current
> coordinates of the point where I clicked with the mouse to invoke the
> creation command?
>
> I know these questions are partly for the eclipse swt newsgroup, but are
> also very connected to gmf so I ask here.
>
> Thanks in advance,
> Kalin
|
|
|
Powered by
FUDForum. Page generated in 0.06192 seconds