action enablement [message #589424] |
Sun, 26 January 2003 16:36 |
ilan klein Messages: 20 Registered: July 2009 |
Junior Member |
|
|
Hi all
I need to use the enablemnt featuer for an action in the project i am
working on.
the problem is i cannot make it work.
I have a login and logout actions, and I want to programaticly configure the
logout to become enabled in the menu when the loggin has succeeded.
<action
label="Log&out"
icon="icons/sample.gif"
description="Logout action"
tooltip="Login toolbar action"
class="LogoutAction"
menubarPath="programMenu/LoginGroup"
id="LogoutAction">
<enablement>
<and>
<objectClass
name="Login">
</objectClass>
<objectState
name="loginState"
value="Login">
</objectState>
</and>
</enablement>
i assume that in class Login.java I should have a IActionFilter interface
implemented and i have done that.
but when i run the program i never get there (I return true all the time and
still the action is not enabled, and i do a print too).
please help me understand this mechanizem
ILAN
|
|
|
Powered by
FUDForum. Page generated in 0.02642 seconds