Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334257 - [Compatibility] "org.eclipse.core.runtime.Platform" variable cannot be found in the context
Summary: [Compatibility] "org.eclipse.core.runtime.Platform" variable cannot be found ...
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.1 M6   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-13 08:58 EST by Remy Suen CLA
Modified: 2011-02-03 10:47 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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