Skip to content

Commit

Permalink
Make launch shortcut more precise
Browse files Browse the repository at this point in the history
  • Loading branch information
hstaudacher committed Mar 5, 2016
1 parent 87dc7ad commit 378392a
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions com.tasktop.dropwizard.launcher/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,25 @@
label="Dropwizard Application"
modes="run,debug,coverage,yourkitprofile">
<contextualLaunch>
<enablement>
<with
variable="selection">
<count
value="1">
</count>
<iterate>
<adapt
type="org.eclipse.jdt.core.IJavaElement">
<test
property="org.eclipse.jdt.core.isInJavaProject">
</test>
</adapt></iterate>
</with></enablement></contextualLaunch>
<enablement>
<with variable="selection">
<count value="1"/>
<iterate>
<and>
<adapt type="org.eclipse.jdt.core.IJavaElement">
<test property="org.eclipse.jdt.core.isInJavaProject"/>
</adapt>
<or>
<test property="org.eclipse.jdt.launching.hasMain"/>
<test property="org.eclipse.jdt.launching.isContainer"/>
<test property="org.eclipse.jdt.launching.isPackageFragment"/>
<test property="org.eclipse.jdt.launching.isPackageFragmentRoot"/>
</or>
</and>
</iterate>
</with>
</enablement>
</contextualLaunch>
</shortcut>
</extension>
<extension
Expand Down

0 comments on commit 378392a

Please sign in to comment.