Mercurial > projects > dwt2
diff org.eclipse.core.databinding/src/org/eclipse/core/databinding/UpdateSetStrategy.d @ 85:6be48cf9f95c
Work on databinding
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 18 Apr 2009 13:54:50 +0200 |
parents | 383ce7bd736b |
children |
line wrap: on
line diff
--- a/org.eclipse.core.databinding/src/org/eclipse/core/databinding/UpdateSetStrategy.d Sat Apr 18 09:25:29 2009 +0200 +++ b/org.eclipse.core.databinding/src/org/eclipse/core/databinding/UpdateSetStrategy.d Sat Apr 18 13:54:50 2009 +0200 @@ -22,6 +22,19 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; + /** + * Helper method allowing API evolution of the above constant values. The + * compiler will not inline constant values into client code if values are + * "computed" using this helper. + * + * @param i + * an integer + * @return the same integer + */ + private int notInlined(int i) { + return i; + } + /** * Customizes a {@link Binding} between two * {@link IObservableSet observable sets}. The following behaviors can be @@ -71,19 +84,6 @@ */ public final static int POLICY_UPDATE = notInlined(8); - /** - * Helper method allowing API evolution of the above constant values. The - * compiler will not inline constant values into client code if values are - * "computed" using this helper. - * - * @param i - * an integer - * @return the same integer - */ - private static int notInlined(int i) { - return i; - } - protected IConverter converter; private int updatePolicy; @@ -165,14 +165,17 @@ if (converter !is null) { if (sourceType !is null) { checkAssignable(converter.getFromType(), sourceType, - "converter does not convert from type " + sourceType); //$NON-NLS-1$ + "converter does not convert from type " ~ String_valueOf(sourceType)); //$NON-NLS-1$ } if (destinationType !is null) { checkAssignable(converter.getToType(), destinationType, - "converter does not convert to type " + destinationType); //$NON-NLS-1$ + "converter does not convert to type " ~ String_valueOf(destinationType)); //$NON-NLS-1$ } } } + package void fillDefaults_package(IObservableSet source, IObservableSet destination) { + fillDefaults(source, destination); + } /** * @return the update policy @@ -211,6 +214,9 @@ } return Status.OK_STATUS; } + package IStatus doAdd_package( IObservableSet observableSet, Object element) { + return doAdd(observableSet, element); + } /** * Removes the element at the given index from the given observable list. @@ -230,4 +236,7 @@ } return Status.OK_STATUS; } + package IStatus doRemove_package(IObservableSet observableSet, Object element) { + return doRemove(observableSet, element ); + } }