Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » action enablement
action enablement [message #589424] Sun, 26 January 2003 16:36
ilan klein is currently offline ilan kleinFriend
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&amp;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
Previous Topic:contribute actions to all of TextEditor
Next Topic:How do I upgrade from 2.0.2 to 2.1 M4?
Goto Forum:
  


Current Time: Mon Oct 22 06:13:10 GMT 2018

Powered by FUDForum. Page generated in 0.02090 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top