viewActions support of visibility element [message #327748] |
Wed, 30 April 2008 07:21  |
Eclipse User |
|
|
|
Originally posted by: automatic.javalobby.org
I'm using Eclipse 3.3.1.1 and am trying to implement the visibility element with org.eclipse.ui.viewActions. I get a warning message in the plug-in editor and it doesn't work when I execute. The same visibility element does work with org.eclipse.ui.popupMenus.
here's the error:
Element 'visibility' is not legal as a child of element 'viewContribution'
and the XML fragment
<extension
point="org.eclipse.ui.viewActions">
<viewContribution
id="myplugin.viewcontribution.debugalways"
targetID="myplugin.ui.views.debug">
<visibility>
<and>
<objectState
name="iscics"
value="true">
</objectState>
<objectState
name="isfile"
value="true">
</objectState>
</and>
</visibility>
<action
class="myplugin.ui.actions.NewCopyAction"
enablesFor="+"
icon="icons/file_drawer.gif"
id="myplugin.view.NewCopy"
label="New Copy"
menubarPath="additions"
style="push"
toolbarPath="additions"
tooltip="Obtain New Copy of Program">
</action>
</viewContribution>
</extension>
I tried placing the visibility element in various elements of the extension but the results remain the same.
am I doing something wrong or is this a bug?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02487 seconds