Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 149370 - [ActionSets] Visibility not support for actions
Summary: [ActionSets] Visibility not support for actions
Status: CLOSED DUPLICATE of bug 110209
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Duong Nguyen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-01 08:47 EDT by Gary Karasiuk CLA
Modified: 2006-11-01 11:54 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Karasiuk CLA 2006-07-01 08:47:15 EDT
The help text for the org.eclipse.ui.actionSets extension point describes that enablement and visibility are interchangable. 

"... An action's enablement and/or visibility can be defined using the elements enablement and visibility respectively. ... "

But when I tried to use visibility in place of enablement, first of all PDE gave me a warning, and then when I ran it it didn't work, the element remained visable. 

Here is a fragment from my plugin.xml:

         <action
               label="%Action.snapshot.memory"
               helpContextId="memory-action"
               tooltip="%Tip.snapshot.memory"
               class="org.eclipse.perfmsr.ui.actions.SnapshotMemory"
               menubarPath="org.eclipse.perfmsr.menu/snapshots"
               id="org.eclipse.perfmsr.ui.SnapshotMemory">
               <visibility>
                 <not>
                   <systemProperty name='os.name' value='Linux'/>
                 </not>
               </visibility>
         </action>
Comment 1 Paul Webster CLA 2006-11-01 11:26:38 EST

*** This bug has been marked as a duplicate of 110209 ***
Comment 2 Gary Karasiuk CLA 2006-11-01 11:54:10 EST
I accept it is a duplicate.