how do i control the viewContribuiton action visibilty. Please help [message #184599] |
Fri, 15 December 2006 11:59 |
Eclipse User |
|
|
|
Originally posted by: contact_kulbir.yahoo.co.in
HI Friends,
im using eclipse 3.2.i have conrtibued an action in the package explorer
view but I am facing difficulty to control the visibilty of the action.
here is the code snippest.
<viewContribution
id="com.my.example.myAction"
targetID="org.eclipse.jdt.ui.PackageExplorer">
<action
class="com.my.example.myAction"
icon="icons/action.gif"
id="com.my.example.myActionID"
label="Action"
menubarPath="general/generalGroup"
state="true"
style="push"
toolbarPath="general/generalGroup"
enablesFor="1">
<visibility>
<objectState name="MethodActionFilter" value="isAbstract"/>
</visibility>
</action>
its showing the warning that visibilty is not a legal child of aciton but
its working for enablement. i will be appreciate if any body help me to
solve this issue.
thanks and regards
Singh
|
|
|
Powered by
FUDForum. Page generated in 0.05210 seconds