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

Bug 334257

Summary: [Compatibility] "org.eclipse.core.runtime.Platform" variable cannot be found in the context
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Paul Webster <pwebster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 4.1 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Remy Suen CLA 2011-01-13 08:58:18 EST
This snippet will show up once in the 'Problems' view and then disappear. It is always there in 3.x. See bug 332246.

<extension point="org.eclipse.ui.menus">
  <menuContribution
      locationURI="popup:org.eclipse.ui.popup.any?after=additions">
    <command
        commandId="org.eclipse.ui.file.save"
        label="Save Test...">
      <visibleWhen>
        <with variable="org.eclipse.core.runtime.Platform">
          <test property="org.eclipse.core.runtime.bundleState"
              args="org.eclipse.ui"
              value="ACTIVE"/>
        </with>
      </visibleWhen>
    </command>
  </menuContribution>
</extension>
Comment 1 Paul Webster CLA 2011-02-03 10:47:19 EST
Set the value in org.eclipse.ui.internal.Workbench.init()

PW