Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Palette Entry Selection
Palette Entry Selection [message #1217997] Fri, 29 November 2013 04:46 Go to next message
Aditya Pavan Devisetty is currently offline Aditya Pavan DevisettyFriend
Messages: 14
Registered: August 2013
Junior Member

I'm new to GEF and I'm digging the GEF tutorials that are available. I displayed some components/items on palette, all of type class Module(Module.class) with different names.Then how would I know the particular component/item of palette is selected by user, so that I create a Draw2D figure of that component/item on design tab of editor. Here is the code , how I added entires to the palette.

protected PaletteRoot getPaletteRoot() {
PaletteRoot root = new PaletteRoot();
PaletteGroup manipGroup = new PaletteGroup("Manipulation d'objets");

SelectionToolEntry selectionToolEntry = new SelectionToolEntry();
manipGroup.add(new MarqueeToolEntry());

PaletteSeparator sep1 = new PaletteSeparator();

PaletteGroup instGroup = new PaletteGroup("Creation d'elemnts");

PaletteSeparator sep2 = new PaletteSeparator();

Map listofinterfaces=TestCommand.getModules();
Set<String> interfacesname=listofinterfaces.keySet();
Iterator<String> it= interfacesname.iterator();
ArrayList<String> names=new ArrayList<String>();
for(String Ninterface:names){
instGroup.add(new CreationToolEntry(Ninterface, "Creation of Component",new NodeCreationFactory(Module.class),null, null));
return root;

I created a Draw2D figure of component/item on palette of different type of classes,but here my test case is of type same class.
Re: Palette Entry Selection [message #1220333 is a reply to message #1217997] Wed, 11 December 2013 07:38 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi, what is the problem?
Previous Topic:I've got the selection, I need to make invisible old!
Next Topic:GEF feature questions
Goto Forum:

Current Time: Thu Jun 21 08:55:25 GMT 2018

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

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

Back to the top