Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Custom contextual menu for component
Custom contextual menu for component [message #670501] Sat, 14 May 2011 13:56 Go to next message
George  is currently offline George Friend
Messages: 34
Registered: March 2011
Member
hello,

My goal is when i make a right click for an component(Button for example) it will appear an additional menu in contextual menu.
i know how to do contextual menu in eclipse but i dont now how to do that for component in editor.

think you for give me the steps and which i should know to do this goal.
Re: Custom contextual menu for component [message #670857 is a reply to message #670501] Sun, 15 May 2011 23:03 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
See usage of this method.
org.eclipse.wb.core.model.broadcast.ObjectEventListener.addContextMenu(List<? extends ObjectInfo>, ObjectInfo, IMenuManager)


If you provide your own JavaInfo model, you can install this broadcast in constructor.
If you want to provide this menu externally, for someone other component, you can use extension point to add broadcast externally. See
org.eclipse.wb.core.model.IRootProcessor
and extension point
org.eclipse.wb.core.rootProcessors


Konstantin Scheglov,
Google, Inc.
Previous Topic:Custom Button
Next Topic:Swing Popup Menu Problem
Goto Forum:
  


Current Time: Thu Nov 27 14:43:43 GMT 2014

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

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