You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/AsynchronousTestSet.java
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,7 @@ public AsynchronousTestSet() {
68
68
super(newHashSet<>(), Object.class);
69
69
display = Display.getCurrent();
70
70
if (display == null) {
71
-
thrownewIllegalStateException(
72
-
"This object can only be created in the UI thread"); //$NON-NLS-1$
71
+
thrownewIllegalStateException("This object can only be created in the UI thread"); //$NON-NLS-1$
Copy file name to clipboardExpand all lines: examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/LabelProviderTest.java
Copy file name to clipboardExpand all lines: examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/LabelProviderTest2.java
Copy file name to clipboardExpand all lines: examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/SimpleNode.java
Copy file name to clipboardExpand all lines: examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/StructuredContentProviderTest.java
+24-44Lines changed: 24 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -91,14 +91,13 @@ public class StructuredContentProviderTest {
91
91
privateWritableValue<Integer> currentFunction;
92
92
93
93
/**
94
-
* mathFunction is the transformation. It can multiply by 2, round down to
95
-
* the nearest integer, or do nothing (identity)
94
+
* mathFunction is the transformation. It can multiply by 2, round down to the
95
+
* nearest integer, or do nothing (identity)
96
96
*/
97
97
privateSomeMathFunction<Double> mathFunction;
98
98
99
99
/**
100
-
* Set of Doubles. Holds the result of applying mathFunction to the
101
-
* inputSet.
100
+
* Set of Doubles. Holds the result of applying mathFunction to the inputSet.
102
101
*/
103
102
privateMappedSetoutputSet;
104
103
@@ -120,9 +119,7 @@ public StructuredContentProviderTest() {
Copy file name to clipboardExpand all lines: examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/TreeContentProviderTest.java
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -92,8 +92,7 @@ public void widgetSelected(SelectionEvent e) {
Copy file name to clipboardExpand all lines: examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/ducks/DuckType.java
+23-21Lines changed: 23 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -19,57 +19,59 @@
19
19
importjava.lang.reflect.Proxy;
20
20
21
21
/**
22
-
* DuckType. Implements Duck Typing for Java. ("If it walks like a duck,
23
-
* quacks like a duck, it..."). Essentially allows programs to treat
24
-
* objects from separate hierarchies as if they were designed with common
25
-
* interfaces as long as they adhere to common naming conventions.
22
+
* DuckType. Implements Duck Typing for Java. ("If it walks like a duck, quacks
23
+
* like a duck, it..."). Essentially allows programs to treat objects from
24
+
* separate hierarchies as if they were designed with common interfaces as long
25
+
* as they adhere to common naming conventions.
26
26
* <p>
27
-
* This version is the strict DuckType. All methods present in
27
+
* This version is the strict DuckType. All methods present in
28
28
* interfaceToImplement must be present on the target object.
29
29
*
30
30
* @author djo
31
31
*/
32
32
publicclassDuckTypeimplementsInvocationHandler {
33
33
34
34
/**
35
-
* Interface DuckType#Wrapper. An interface for DuckType proxies that
36
-
* allows clients to access the proxied value. The value returned by
37
-
* calling DuckType#implement always implements this interface.
35
+
* Interface DuckType#Wrapper. An interface for DuckType proxies that allows
36
+
* clients to access the proxied value. The value returned by calling
37
+
* DuckType#implement always implements this interface.
38
38
*/
39
39
publicstaticinterfaceWrapper {
40
40
/**
41
-
* Method duckType_GetWrappedValue. Returns the proxied value.
41
+
* Method duckType_GetWrappedValue. Returns the proxied value.
42
42
*
43
43
* @return The proxied value.
44
44
*/
45
45
publicObjectduckType_GetWrappedValue();
46
46
}
47
47
48
48
/**
49
-
* Causes object to implement the interfaceToImplement and returns
50
-
* an instance of the object implementing interfaceToImplement even
51
-
* if interfaceToImplement was not declared in object.getClass()'s
52
-
* implements declaration.<p>
49
+
* Causes object to implement the interfaceToImplement and returns an instance
50
+
* of the object implementing interfaceToImplement even if interfaceToImplement
51
+
* was not declared in object.getClass()'s implements declaration.
52
+
* <p>
53
53
*
54
-
* This works as long as all methods declared in interfaceToImplement
55
-
* are present on object.
54
+
* This works as long as all methods declared in interfaceToImplement are
55
+
* present on object.
56
56
*
57
57
* @param interfaceToImplement The Java class of the interface to implement
58
-
* @param object The object to force to implement interfaceToImplement
58
+
* @param object The object to force to implement
59
+
* interfaceToImplement
59
60
* @return object, but now implementing interfaceToImplement
Copy file name to clipboardExpand all lines: examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/ducks/ReflectedMethod.java
+11-14Lines changed: 11 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@
17
17
importjava.lang.reflect.Method;
18
18
19
19
/**
20
-
* ReflectedMethod. Encapsulates a method that may or may not exist on
21
-
* some receiver. Invocation policy is that if the method can be invoked,
22
-
* it is. On failure, returns null.
20
+
* ReflectedMethod. Encapsulates a method that may or may not exist on some
21
+
* receiver. Invocation policy is that if the method can be invoked, it is. On
22
+
* failure, returns null.
23
23
*
24
24
* @author djo
25
25
*/
@@ -29,9 +29,9 @@ public class ReflectedMethod {
29
29
privateMethodmethod;
30
30
31
31
/**
32
-
* Constructor ReflectedMethod. Create a ReflectedMethod object.
32
+
* Constructor ReflectedMethod. Create a ReflectedMethod object.
33
33
*
34
-
* @param subject The object on which the method lives.
34
+
* @param subject The object on which the method lives.
0 commit comments