DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Add item to right click in package explorer
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default Add item to right click in package explorer - 05-05-2008, 07:17 AM

Hi,
any pointers on how to add an item on the right click menu in package explorer on a specific item. i must be able to add menu based on the file type.
Thanks in advance.
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Apr 2008
Default 06-23-2008, 12:00 AM

Add popupmenu extensionpoint to your plugin.xml..
Then add new ObjectContribution.
Speciy the filter type (i.e, file type...like *.java or *.txt)
Add new Menu.
Give menubarpath as 'additions'
Then add actions ...
..
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2009
Default Add item to right click in package explorer - 10-07-2009, 08:49 AM

Hey,
I did the above mentioned changes in plugin.xml.......but can anyone tell how to code the action classes for these new items.

Thanks in advance
Sapna
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can my view in Eclipse listen to the selection made in the package explorer. poonam12jul Eclipse 0 11-15-2008 02:27 PM
[Eclipse PDE] Accessing Package Explorer mazeli Eclipse 1 08-10-2008 03:21 PM
Can not find package called out in API aannas Eclipse 1 06-27-2008 02:31 PM
Disable right-click mtrudgia Eclipse 0 03-31-2008 01:19 AM
code to get the location of file in package explorer jayjamba Eclipse 1 03-18-2008 03:04 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com