Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [commands] notify about property changes
[commands] notify about property changes [message #481146] Wed, 19 August 2009 18:22 Go to next message
Will Horn is currently offline Will Horn
Messages: 265
Registered: July 2009
Senior Member
Is there a way to notify the framework when a PropertyTester's property has
changed? In my particular case, I have a handler with an enabledWhen that
references the property:
<enabledWhen>
<with
variable="activePart">
<test
property="org.example.booleanProperty"
value="true">
</test>
</with>
</enabledWhen>

I'd like to refresh the enablement state as soon as the property value
changes. Right now, I have to refocus the view for the PropertyTester to be
invoked again.

Thanks,
Will
Re: [commands] notify about property changes [message #481148 is a reply to message #481146] Wed, 19 August 2009 18:50 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You need org.eclipse.ui.services.IEvaluationService.requestEvaluation (String)

This will update evaluations for things like visibleWhen, enabledWhen, and activeWhen.

PW


Previous Topic:Unable To Refresh After Changing A Folder
Next Topic:Errors running builder 'Script Builder' on project '***'.
Goto Forum:
  


Current Time: Fri Oct 31 12:26:45 GMT 2014

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

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