Eclipse new Menu Creation Plugin [message #1809728] |
Mon, 22 July 2019 07:50 |
Priyabrata Kabiraj Messages: 1 Registered: July 2019 |
Junior Member |
|
|
I created a plugin which creates a new menu named as My menu and child list contains run. When i run the project as eclipse application it runs on clicking run option and particular class file gets called.
But when i exported the plugins in eclipse plugins plugins folder the new menu appeared with child item "run" but clicking on run no action take place neither it throws any exception.
Following is my Plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.commands">
<category
id="Bot-Framework-UI.commands.category"
name="Sample Category">
</category>
<command
categoryId="Bot-Framework-UI.commands.category"
name="run"
class="botframeworkui.handlers.SampleHandler"
id="Bot-Framework-UI.commands.sampleCommand">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="botframeworkui.handlers.SampleHandler" // class file to trigger
commandId="Bot-Framework-UI.commands.sampleCommand">
</handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="Bot-Framework-UI.commands.sampleCommand"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
contextId="org.eclipse.ui.contexts.window"
sequence="M1+11">
</key>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
id="Bot-Framework-UI.menus.sampleMenu"
label="My menu"
mnemonic="M">
<command
commandId="Bot-Framework-UI.commands.sampleCommand"
id="Bot-Framework-UI.menus.sampleCommand"
mnemonic="S">
</command>
</menu>
</menuContribution>
</plugin>
|
|
|
Powered by
FUDForum. Page generated in 0.08105 seconds