Skip to main content

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

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
and extension point

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

Current Time: Sun May 27 10:08:23 GMT 2018

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

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

Back to the top