Unable to add launcher shortcut (Eclipse plug-in)

I am making a simple add-on java application for Eclipse 3.2 (JBuilder 2007-8) for internal use.

So, I looked at everything related to the documentation, including Launcher Framework from eclipse.org and managed to do everything that works, except for the launcher shortcut.

alt text

This is part of my plugin.xml.

   <extension
     point="org.eclipse.debug.ui.launchShortcuts">
  <shortcut
        category="mycompany.javalaunchext.launchConfig"
        class="mycompany.javalaunchext.LaunchShortcut"
        description="launchshortcutsdescription"
        icon="icons/k2mountain.png"
        id="mycompany.javalaunchext.launchShortcut"
        label="Java Application Ext."
        modes="run, debug">
     <perspective
           id="org.eclipse.jdt.ui.JavaPerspective">
     </perspective>
     <perspective
           id="org.eclipse.jdt.ui.JavaHierarchyPerspective">
     </perspective>
     <perspective
           id="org.eclipse.jdt.ui.JavaBrowsingPerspective">
     </perspective>
     <perspective
           id="org.eclipse.debug.ui.DebugPerspective">
     </perspective>
  </shortcut>

The configuration name in the category section is correct, and the class in the class, I believe, is correctly implemented. (mostly copied from org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut)


, , . org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchShortcut. , , , .

+3
2

contextualLaunch org.eclipse.debug.ui.launchShortcuts.

, -.

, , org.eclipse.ui.commands .

, , () .

+4

ILaunchShortcut. Javadoc.

? .

0

Source: https://habr.com/ru/post/1696527/


All Articles