Unterschiede
Hier werden die Unterschiede zwischen der gewählten und der aktuellen Version gezeigt.
en:eclipse-rcp:binding 2012/10/18 15:57 | en:eclipse-rcp:binding 2020/01/22 21:00 aktuell | ||
---|---|---|---|
Zeile 234: | Zeile 234: | ||
===== troubleshooting ===== | ===== troubleshooting ===== | ||
- | Wird eine setXYZ(..)-Methode nicht gefunden, so sollte als Erstes die Schreibweise der Property-Konstanten (hier: PROP_XXXXX) überprüft werden. Diese muss genauso geschrieben werden wie die get und set-Methoden. Lediglich das get und set wird weggelassen und der erste Buchstabe wird kleingeschrieben.\\ | + | If a setXYZ(..)-method is not found, you should firstly check the spelling of the property-constants (here: PROP_XXXXX). This one must be written exactly as the get and set-methods. Merely the get and set is left out and the first letter is written small.\\ |
- | Beispiel:\\ | + | Example:\\ |
- | es gäbe die Methoden getValue() und setValue(int newValue), so müsste die Konstante als "value" definiert werden.\\ | + | there would be the method getValue() and setValue(), so the constant had to be defined as "value".\\ |
- | Beispiel:\\ | + | Example:\\ |
<code java>public static final String PROP_VALUE = "value";</code>\\ | <code java>public static final String PROP_VALUE = "value";</code>\\ | ||
- | Als Zweites kann man einen Breakpoint in der Methode ValueBinding#doUpdate(..) setzen (z.B. beim Aufruf der Methode updateValueStrategy.doSet(..)) um den Fehler zu finden.\\ | + | Secondly, you can set a breakpoint in the method ValueBinding#doUpdate(..) (e.g. at the call of the method updateValueStrategy.doSet(..)) to find the bug.\\ |
- | Achtung! In Eclipse 3.3 gibt es einen Fehler: Die PropertyMethode/die Property-Konstante darf niemals mit zwei Großbuchstaben beginnen (also nicht: getVAlue() mit "vAlue")!!\\ | + | Careful! In Eclipse 3.3 there is a bug: The propertymethod/ property-constant is not allowed to begin with two capital letters (so, not: getVAlue() with "vAlue")!!\\ |