popup menu in eclipse plugin development -
i want create plugin in if user right click on folder or file, popup menu open , there option read file. new plugin development have done code. plugin.xml following
<?xml version="1.0" encoding="utf-8"?> <?eclipse version="3.4"?> <plugin> <extension point="org.eclipse.ui.commands"> <category name="sample category" id="com_.samsung.plugin.second.commands.category"> </category> <command name="sample command" categoryid="com_.samsung.plugin.second.commands.category" id="com_.samsung.plugin.second.commands.samplecommand"> </command> <command defaulthandler="com .samsung.plugin.second.samplehandler" id="com .samsung.plugin.second.sample" name="name"> </command> </extension> <extension point="org.eclipse.ui.handlers"> <handler commandid="com_.samsung.plugin.second.commands.samplecommand" class="com_.samsung.plugin.second.handlers.samplehandler"> </handler> </extension> <extension point="org.eclipse.ui.bindings"> <key commandid="com_.samsung.plugin.second.commands.samplecommand" contextid="org.eclipse.ui.contexts.window" sequence="m1+6" schemeid="org.eclipse.ui.defaultacceleratorconfiguration"> </key> </extension> <extension point="org.eclipse.ui.menus"> <menucontribution locationuri="popup:org.eclipse.jdt.ui.packageexplorer"> <command commandid="com_.samsung.plugin.second" label="read file" style="push"> </command> </menucontribution> </extension> <extension point="org.eclipse.ui.commands"> <command defaulthandler="com_.samsung.plugin.second.handler.samplehandler" id="com_.samsung.plugin.second" name="convert"> </command> </extension> </plugin>
and have samplehandler class in com_.samsung.plugin.second.handlers;
but in popup readfile option not visible.
please suggest me whats wrong this.
any appriciated.
thanks
Comments
Post a Comment