Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » PropertTester
PropertTester [message #480720] Tue, 18 August 2009 10:09 Go to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

Why Property tester Expression Node does not resolve actual value while
expression runs.

in complex environment, that's not easy to determine point when property
changes.

For example: in word processor, bold state of current text selection.
in this case, we have to call requestEvaluation so many times to use
menu contribution.
Re: PropertTester [message #480830 is a reply to message #480720] Tue, 18 August 2009 15:45 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

The property tester does resolve its value every time the expression is run. Do you mean why do you have to call requestEvaluation(*) when you know your property has changed? Because in any event driven system, something has to create and feed the events into the system.

When using an AbstractSourceProvider to provide a variable (for use with "with" elements) to the evaluation service, the ASP fires events into the system (basically hooking up the client eventing mechanism to the system). When you use a property tester/property, you must hook up your known eventing mechanism to the system.

PW


Thanks! (no contents) [message #480932 is a reply to message #480830] Wed, 19 August 2009 01:39 Go to previous messageGo to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

I told you.
Re: Thanks! (no contents) [message #481036 is a reply to message #480932] Wed, 19 August 2009 12:07 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

"I told you" what, exactly?

You started your post with: "Why Property tester Expression ..." a question. My post was answering your question. So what did you tell me? That you noticed the same thing in your example? Yes, true, but you asked why ... hence my post.

PW


Re: Thanks! (no contents) [message #481180 is a reply to message #481036] Thu, 20 August 2009 01:06 Go to previous messageGo to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

ooops, "I told you" just means "no contents" in subject.

I told you "no content" in subject because I don't want someone try to
click that post to read, To prevent wasting their time. In Korea, that's
general expression.

I'm sorry if it made you feel bad.


Paul Webster wrote:
> "I told you" what, exactly?
>
> You started your post with: "Why Property tester Expression ..." a
> question. My post was answering your question. So what did you tell
> me? That you noticed the same thing in your example? Yes, true, but
> you asked why ... hence my post.
>
> PW
>
Re: Thanks! (no contents) [message #481599 is a reply to message #481180] Fri, 21 August 2009 17:25 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jiyul wrote on Wed, 19 August 2009 21:06
ooops, "I told you" just means "no contents" in subject.

[...snip...]

I'm sorry if it made you feel bad.



Don't worry, I'm good Smile

Thank you for the clarification, it makes sense now.

PW


Previous Topic:Load Jar from system variable
Next Topic:Blocking command execution (wainting for results)
Goto Forum:
  


Current Time: Thu Apr 25 09:20:49 GMT 2024

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

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

Back to the top