<p>I'm making a simple extra java app launcher for Eclipse 3.2 (JBuilder 2007-8) for internal use.</p>

<p>So I looked up all the documentations related, including this one <a href="http://www.eclipse.org/articles/Article-Launch-Framework/launch.html" rel="nofollow noreferrer" title="The Launching Framework">The Launching Framework from eclipse.org</a> and have managed to make everything else working with the exception of the launch shortcut. </p>

<p><img src="https://i.stack.imgur.com/8I8zw.jpg" alt="alt text"></p>

<p>This is the part of my plugin.xml. </p>

<pre><code>   &lt;extension
     point="org.eclipse.debug.ui.launchShortcuts"&gt;
  &lt;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"&gt;
     &lt;perspective
           id="org.eclipse.jdt.ui.JavaPerspective"&gt;
     &lt;/perspective&gt;
     &lt;perspective
           id="org.eclipse.jdt.ui.JavaHierarchyPerspective"&gt;
     &lt;/perspective&gt;
     &lt;perspective
           id="org.eclipse.jdt.ui.JavaBrowsingPerspective"&gt;
     &lt;/perspective&gt;
     &lt;perspective
           id="org.eclipse.debug.ui.DebugPerspective"&gt;
     &lt;/perspective&gt;
  &lt;/shortcut&gt;
</code></pre>

<p></p>

<p>The configuration name in the category section is correct and the class in the class section, i believe, is correctly implemented. (basically copied from org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut)</p>

<hr>

<p>I'm really not sure if I'm supposed to write a follow-up here but let me clarify my question more.
I've extended org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchShortcut. 
Plus, I've added my own logger to constructors and methods, but the class seems like it's never even instantiating.</p>

[{'answer_id': 26341, 'author': 'zvikico', 'author_id': 2823, 'author_profile': 'https://Stackoverflow.com/users/2823', 'pm_score': 0, 'selected': False, 'text': '<p>You class should implement ILaunchShortcut.\nCheck out the <a href="http://help.eclipse.org/help32/nftopic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/debug/ui/ILaunchShortcut.html" rel="nofollow noreferrer">Javadoc</a>. </p>\n\n<p>What exception are you getting?  Check the error log.</p>\n'}, {'answer_id': 40209, 'author': 'wbkang', 'author_id': 2710, 'author_profile': 'https://Stackoverflow.com/users/2710', 'pm_score': 3, 'selected': True, 'text': "<p>I had to add <code>contextualLaunch</code> under <code>org.eclipse.debug.ui.launchShortcuts</code>.</p>\n\n<p>The old way seems like it's deprecated a long ago.</p>\n\n<p>For other people who are working on the same subject,\nyou might want to extend <code>org.eclipse.ui.commands</code> and bindings, too.</p>\n\n<p>I cannot choose this answer but this is the answer that I (the questioner) was looking for.</p>\n"}]
['https://Stackoverflow.com/questions/26145', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2710/']