actionSetPartAssociations wont work to hide action set [message #441491] |
Tue, 03 January 2006 18:25 |
Eclipse User |
|
|
|
Originally posted by: michael.lipton.gmail.com
Hello,
I have done extensive research on the use of actionSets and actionSetPartAssociations and think that I am using the extension points properly, but it doesn't seem to be working.
I would like my "print" and "send to personal window" options only to be visible when the CreateNewContactView or SearchContactViews are active.
Does anyone see anything wrong with this?
is there anything i'm missing?
anything else that could be wrong???
thanks in advance for your help.
mike
---------------------------------
Here is a clip from my plugin.xml
<extension
point="org.eclipse.ui.actionSets">
<actionSet
description="actions associated with contact entries"
id="contactEntryActionSet"
label="contact entry action set"
visible="true">
<action
class="PrintAction"
id="contactEntry.print"
label="Print"
menubarPath="file/additions"
style="push"
/>
<action
class="AddToPersonalWindowAction"
id="contactEntry.sendToPW"
label="Send to Personal Window"
menubarPath="file/additions"
style="push"/>
</actionSet>
</extension>
<extension
point="org.eclipse.ui.actionSetPartAssociations">
<actionSetPartAssociation targetID="contactEntryActionSet">
<part id="CreateNewContactView"/>
<part id="SearchView"/>
</actionSetPartAssociation>
</extension>
--
View in EZ forum: http://www.eclipsezone.com/eclipse/forums/m91978790.html
|
|
|
|
|
|
Re: actionSetPartAssociations wont work to hide action set [message #441504 is a reply to message #441501] |
Tue, 03 January 2006 21:32 |
Eclipse User |
|
|
|
Originally posted by: michael.lipton.gmail.com
> There's an example close to the end of the plugin.xml
> in
> org.eclipse.ui.tests, at least that's where the
> actionSetPartAssociation
> is defined.
>
> It looked just like yours. An extension with an id,
> a targetID in the
> sub element, and a part with an id.
>
> The only difference I could see was the action set in
> the targetID had
> visible="false".
>
> Maybe the missing id for your extension matters.
> Check out the
> efinitions in org.eclipse.ui.tests/plugin.xml
>
> Later,
> PW
well, this is strange... setting visible false does the trick now... not sure why it didnt work before, i must have messed something up
thanks a lot for your help.
--
View in EZ forum: http://www.eclipsezone.com/eclipse/forums/m91978800.html
|
|
|
Re: actionSetPartAssociations wont work to hide action set [message #461998 is a reply to message #441499] |
Sat, 20 January 2007 22:03 |
Eclipse User |
|
|
|
Originally posted by: akbdas.gmail.com
hi,
I have a problem with actionSets in RCP for enabling/disabling menu items and toolbars items.
In my current application, after a user login bases some parameters i need to disable/enable menu & toolbar items.
Menu & toolbar items created using action sets.
I hope u will in a position solve me problem
Thanks in advance
Das
|
|
|
|
|
Re: actionSetPartAssociations wont work to hide action set [message #462117 is a reply to message #462116] |
Tue, 23 January 2007 10:35 |
Eclipse User |
|
|
|
Originally posted by: akbdas.gmail.com
Hi,
I have small query, is selectionChanged will be call be called when action is selected.
but i want to disable at the time of initialization / any other time. but on its action.
more specfically, when successful login i need to disable few items based on who (userid) logs-in.
Thanks in advance.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03690 seconds