Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [RESOLVED] How to add SelectionListener on a PaletteEntry
icon5.gif  [RESOLVED] How to add SelectionListener on a PaletteEntry [message #503193] Fri, 11 December 2009 05:47 Go to next message
Mickael GAUVIN is currently offline Mickael GAUVINFriend
Messages: 39
Registered: July 2009
Member
Hello,

I would like to know how can I set a SelectionListener on the palette which returns to me the current selected PaletteEntry ?

Thanks in advance.

Mickaël.

[Updated on: Fri, 11 December 2009 12:08]

Report message to a moderator

icon14.gif  Re: How to add SelectionListener on a PaletteEntry [message #503199 is a reply to message #503193] Fri, 11 December 2009 11:06 Go to previous message
Mickael GAUVIN is currently offline Mickael GAUVINFriend
Messages: 39
Registered: July 2009
Member
I found,

In fact it was easy :

getEditDomain().getPaletteViewer().addSelectionChangedListener(new ISelectionChangedListener() {
			
		public void selectionChanged(SelectionChangedEvent event) {
			System.out.println(event.getSelection());
				
		}
});


Bye.

Mickael.

[Updated on: Fri, 11 December 2009 06:06]

Report message to a moderator

Previous Topic:Adding to palette context menu
Next Topic:Feedback layer zoom
Goto Forum:
  


Current Time: Thu Apr 25 18:56:37 GMT 2024

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

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

Back to the top