Creating Submenus in PackageExplorer

Tell us what you think about our book and report any errata. Sample chapters are available at http://www.qualityeclipse.com/

(Note: Previous Editions were called "Eclipse: Building Commercial Quality Plugins")

Moderators: Eric Clayberg, Dan Rubel

Creating Submenus in PackageExplorer

Postby chevulan » Mon Feb 01, 2010 8:52 am

Hi, I am new to Eclipse development. I bought the 3rd edition of Eclipse plug-ins.

I want to create sub menu on the package explorer and each menu option would invoke a command. What is the best way to accomplish this?


Thanks
Nags
chevulan
 
Posts: 2
Joined: Mon Feb 01, 2010 8:48 am

Re: Creating Submenus in PackageExplorer

Postby Dan Rubel » Wed Feb 03, 2010 11:52 am

chevulan wrote:I want to create sub menu on the package explorer and each menu option would invoke a command. What is the best way to accomplish this?


I recommend adding a command, then contributing that command to the package explorer context menu, and finally associating a handler with that command. Commands, UI contributions, and handlers are covered in sections 6.1 through 6.3 in our book.
Dan Rubel
Moderator
 
Posts: 27
Joined: Thu Oct 30, 2003 9:13 am


Return to Book: Eclipse Plug-Ins (3rd Edition)

Who is online

Users browsing this forum: No registered users and 1 guest