Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » List box in the canvas
List box in the canvas [message #104931] Mon, 19 February 2007 08:54 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to programmatically delete/remove elements
Next Topic:Gridlayout help please
Goto Forum:
  


Current Time: Tue Jul 22 09:00:28 EDT 2025

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

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

Back to the top