Hide perspective using xml ? [message #1011821] |
Wed, 20 February 2013 05:11 |
Eclipse User |
|
|
|
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 ) Jim
|
|
|
Powered by
FUDForum. Page generated in 0.27993 seconds