LaunchShortcuts on Active Editor [message #259806] |
Tue, 28 April 2009 02:33 |
Eclipse User |
|
|
|
Hi,
I don't know if it is the correct group to post but newcomer group don't seem answer then :
I have a eclipse plugin project which define a project nature (MDANature).
Each MDA project contains a .mda file.
I have enabled launchShortcuts on MDAProject and .mda file selection :
<extension
point="org.eclipse.debug.ui.launchShortcuts">
<shortcut
class=" com.miasoftware.miastudio.agl.launch.MDAProjectLaunchShortcu t "
description="MDA Project"
icon="icons/logo.gif"
id=" com.miasoftware.miastudio.agl.launch.MDAProjectLaunchShortcu t "
label="MDA Project"
modes="run">
<contextualLaunch>
<enablement>
<with variable="selection">
<count value="1"/>
<iterate>
<and>
<adapt type="org.eclipse.debug.ui.actions.ILaunchable">
</adapt>
<or>
<test property="org.eclipse.jdt.launching.hasProjectNature" args="com.miasoftware.miastudio.agl.nature.MDANature"/>
<test property="org.eclipse.debug.ui.matchesPattern" value="*.mda">
</test>
</or>
</and>
</iterate>
</with>
</enablement>
</contextualLaunch>
<configurationType
id=" com.miasoftware.miastudio.agl.launch.MDAProjectLaunchConfigu ration ">
</configurationType>
<description
description="MDA Project"
mode="run">
</description>
</shortcut>
</extension>
Now I want enable launchShortcuts on ActiveEditor with specific editor. But I don't find or know how implement propertyTester for that.
How can I enable launchShortcuts on Active editor?
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03099 seconds