Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 120718

Summary: debug ui: org.eclipse.debug.ui.launchShortcuts schema, warning on "enablement"
Product: [Eclipse Project] Platform Reporter: Richard Kulp <richkulp>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: wassim.melhem
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Richard Kulp CLA 2005-12-13 15:31:23 EST
I'm getting a warning that enablement is not a legal child of contextual launch in the following example:

   <extension
         point="org.eclipse.debug.ui.launchShortcuts">
      <shortcut
            label="%shortcut.label Java Bean"
            icon="icons/full/ctool16/java_bean_launcher.gif"
            modes="run, debug"
            class="org.eclipse.ve.internal.java.vce.launcher.JavaBeanShortcut"
            id="org.eclipse.ve.internal.java.core.vce.localJavaShortcut">
        <contextualLaunch>
            <enablement>
               <with
                     variable="selection">
                  <count
                        value="1">
                  </count>
               		<iterate>
                 		<or>
                   			<test property="org.eclipse.debug.ui.matchesPattern" value="*.java"/>
                   			<test property="org.eclipse.debug.ui.matchesPattern" value="*.class"/>
                 		</or>
               		</iterate>
               </with>
            </enablement>
         </contextualLaunch>

But if you go to the help documentation for the extension point, "enablement" is a valid element under contextualLaunch.

This is with the 12/06 Eclipse SDK Integration build.
Comment 1 Darin Wright CLA 2005-12-13 15:43:01 EST
Wassim, I don't think this is a debug issue... is this a dup of bug 77021 or bug 77043?
Comment 2 Wassim Melhem CLA 2005-12-13 15:51:47 EST
yes, not a debug issue.  it's a dup of bug 77043

*** This bug has been marked as a duplicate of 77043 ***