Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse new Menu Creation Plugin
Eclipse new Menu Creation Plugin [message #1809728] Mon, 22 July 2019 07:50
Priyabrata Kabiraj is currently offline Priyabrata KabirajFriend
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>
Previous Topic:Unable to install gradle in runtime eclipse
Next Topic:Azure SF tutorial project builds with gradle 5.4, but not with Eclipse 2019-06
Goto Forum:
  


Current Time: Thu Apr 25 17:37:08 GMT 2024

Powered by FUDForum. Page generated in 0.08105 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top