Adding button to Right Click menu [message #329559] |
Fri, 27 June 2008 19:44 |
Eclipse User |
|
|
|
Originally posted by: maxipower_q.yahoo.com
i'm developing a file renamer plugin.
currently, i put a button under 'Edit' menu, on the upper menu of the
Eclipse window. this button opens my GUI. also i use a JFileChooser in my
GUI to take the choosen file's path.
but this is a really bad solution.
i wanna learn;
1. how can i add my plugin's button inside the right click menu in Eclipse?
so user can right click on the file and select it.
(can you tell me what changes should i make in my plugin.xml (shown below))
2. how can i get the choosen file's path to a string? (with which
commands?)
my current plugin.xml file is like that:
<plugin>
<extension point="org.eclipse.ui.actionSets">
<actionSet label="Sample Action Set" visible="true"
id="argela.plugins.rename13.actionSet">
<action label="&Rename13"
class="argela.plugins.rename13.actions.Application"
menubarPath="Edit/Rename13"
id="argela.plugins.rename13.actions.Application">
</action>
</actionSet>
</extension>
</plugin>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07809 seconds