Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Hiding Actions using an Environmental Variable
Hiding Actions using an Environmental Variable [message #465007] Wed, 21 March 2007 18:16 Go to next message
Chris Grant is currently offline Chris GrantFriend
Messages: 45
Registered: July 2009
Member
Hi:

I have an RCP app and I want to be able to turn on and off actions via an
ENV VAR set in windows. We have good reasons for doing, although you may
ask :-).

I have tried this with something like this using visibility and
systemProperty:

<action
class="com.x4m.coreui.wizardview.ShowWizardViewAction"
id="com.x4m.seismicui.processing.ProcMultiVolumeWizardID"
menubarPath="com.x4m.seismicui.seismicmenu/seismicGroup"
style="push"
label="Process multiple volumes..."
tooltip="Process multiple volumes"> <visibility>
<systemProperty
name="AAPG2007"
value="true"/>
</visibility> </action>

but it still shows up if I have not set the ENV VAR AAPG2007

Can someone please offer some advice?

Thanks,

Chris
Re: Hiding Actions using an Environmental Variable [message #465104 is a reply to message #465007] Thu, 22 March 2007 22:46 Go to previous message
No real name is currently offline No real nameFriend
Messages: 38
Registered: July 2009
Member
Chris,

We have good luck using enablements on actions, including using system
properties. Here's an example:

<action
class="com.xxx.actions.AddFeaturesAction"
id="com.xxx.ui.addFeatures"
label="Add Features...."
menubarPath="help/com.xxx.ui.updateMenu/separator3"
style="push">
<enablement>
<systemProperty
name="feature.xxx"
value="true"/>
</enablement>
</action>

RN

Chris wrote:
> Hi:
>
> I have an RCP app and I want to be able to turn on and off actions via
> an ENV VAR set in windows. We have good reasons for doing, although you
> may ask :-).
>
> I have tried this with something like this using visibility and
> systemProperty:
>
> <action
> class="com.x4m.coreui.wizardview.ShowWizardViewAction"
> id="com.x4m.seismicui.processing.ProcMultiVolumeWizardID"
> menubarPath="com.x4m.seismicui.seismicmenu/seismicGroup"
> style="push"
> label="Process multiple volumes..."
> tooltip="Process multiple volumes"> <visibility>
> <systemProperty
> name="AAPG2007"
> value="true"/>
> </visibility> </action>
>
> but it still shows up if I have not set the ENV VAR AAPG2007
>
> Can someone please offer some advice?
>
> Thanks,
>
> Chris
>
Previous Topic:Getting a handle to IStatusLineManager
Next Topic:Extra space in wizard
Goto Forum:
  


Current Time: Wed Sep 11 20:11:46 GMT 2024

Powered by FUDForum. Page generated in 0.03380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top