Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Hide perspective using xml ?(Hiding perspectives using activites in xml)
Hide perspective using xml ? [message #1011821] Wed, 20 February 2013 10:11
Jim Edwards is currently offline Jim EdwardsFriend
Messages: 1
Registered: February 2013
Junior Member
Hello,

I'm new to this whole eclipse RCP and PDE thing, so any help most welcome !

Basically I've created a new perspective, mostly using xml perspective and perspectiveExtension in my plugin.xml. It basically works fine, but I need it to only be activated in our productized application and "turn it off" when we export as plugins...

Is this possible via xml ? Or are there other ways of doing this ?

I've tried using activity/activityPatternBindings, but this doesn't seem to work, i.e.:

<extension point="org.eclipse.ui.activities">
<activity id="com.x.y.z.disable"
name="HidePerspective">
<enabledWhen>
<with variable="true">
<equals value="false">
</equals>
</with>
</enabledWhen>
</activity>
<activityPatternBinding activityId="com.x.y.z.disable"
pattern="com.x.y.z.MyPerspective">
</activityPatternBinding>
</extension>

If the above worked OK - switching on/off the perspective by changing value="false" to value="true", then I was going to substitute in a property tester for org.eclipse.core.runtime.product. Anyone know if this is a valid approach or why the above doesn't work ?

Thanks for any help,

(A very frustrated Confused ) Jim
Previous Topic:How Can i Reach Dynamicly Created Text ?
Next Topic:Export and Running RCP Prduct with Native DLLs
Goto Forum:
  


Current Time: Fri Mar 29 08:38:58 GMT 2024

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

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

Back to the top