Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How to use ComputedValue for content assistance?
How to use ComputedValue for content assistance? [message #487181] Tue, 22 September 2009 06:51
Eclipse User
Originally posted by:


what I want to do is something like this:
I have three text-fields for values a, b and c where the user can input his
The "formula" is a + b = c

Now I want to use ComputedValues to calculate missing or wrong values.
e.g. user set a = 1, b = 1 - now I want to automatically set c = 2 and I
want to do this for all variants.

Currently I've attached a PropertyChangeListener to my bean and depending on
the changed value I calculate one of the others.

Does anybody knows a better way to do this (e.g. with ComputedValues)?


Previous Topic:Re: How to enable tooltips for each Table cell?
Next Topic:How To Set Size For InputDialog Properly
Goto Forum:

Current Time: Thu Jul 24 21:47:00 EDT 2014

Powered by FUDForum. Page generated in 0.01901 seconds