As shown in the image below, if you want to add 'Tutorials' menu item in the Help Menu in Eclipse.
Adding command extension:
<command
defaultHandler="com.kk.help.TutorialsHelpHandler"
id="com.kk.command.tutorialshelp"
name="Tutorials">
</command>
Adding menu extension:
<menuContribution
allPopups="false"
locationURI="menu:help?after=intro">
<separator
name="slot1"
visible="true">
</separator>
<command
commandId="com.kk.command.tutorialshelp"
label="Tutorials"
style="push">
</command>
<separator
name="slot2"
visible="true">
</separator>
</menuContribution>
Handler implementation:
public class TutorialsHelpHandler extends AbstractHandler implements IHandler{
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
//implemention here
retun null;
}
}
Adding command extension:
<command
defaultHandler="com.kk.help.TutorialsHelpHandler"
id="com.kk.command.tutorialshelp"
name="Tutorials">
</command>
Adding menu extension:
<menuContribution
allPopups="false"
locationURI="menu:help?after=intro">
<separator
name="slot1"
visible="true">
</separator>
<command
commandId="com.kk.command.tutorialshelp"
label="Tutorials"
style="push">
</command>
<separator
name="slot2"
visible="true">
</separator>
</menuContribution>
Handler implementation:
public class TutorialsHelpHandler extends AbstractHandler implements IHandler{
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
//implemention here
retun null;
}
}