Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Hall2009-02-07 00:39:26 +0000
committerMatthew Hall2009-02-07 00:39:26 +0000
commitf52a469eca447c9ba36398acd75fefd61bd39e0b (patch)
treeb1d980c9da94ff86d37f5055c7e84e21ce374551 /bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/ValidationStatusProviderModelsProperty.java
parent8f3a8f8d4febc669a0bead9c340dc3fecd001ce5 (diff)
downloadeclipse.platform.ui-f52a469eca447c9ba36398acd75fefd61bd39e0b.tar.gz
eclipse.platform.ui-f52a469eca447c9ba36398acd75fefd61bd39e0b.tar.xz
eclipse.platform.ui-f52a469eca447c9ba36398acd75fefd61bd39e0b.zip
FIXED - bug 263709: [DataBinding] BindingProperties
https://bugs.eclipse.org/bugs/show_bug.cgi?id=263709
Diffstat (limited to 'bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/ValidationStatusProviderModelsProperty.java')
-rw-r--r--bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/ValidationStatusProviderModelsProperty.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/ValidationStatusProviderModelsProperty.java b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/ValidationStatusProviderModelsProperty.java
new file mode 100644
index 00000000000..037551716f5
--- /dev/null
+++ b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/ValidationStatusProviderModelsProperty.java
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Matthew Hall and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Matthew Hall - initial API and implementation (bug 263709)
+ ******************************************************************************/
+
+package org.eclipse.core.internal.databinding;
+
+import org.eclipse.core.databinding.ValidationStatusProvider;
+import org.eclipse.core.databinding.observable.IObservable;
+import org.eclipse.core.databinding.observable.Realm;
+import org.eclipse.core.databinding.observable.list.IObservableList;
+import org.eclipse.core.databinding.property.list.ListProperty;
+
+/**
+ * @since 3.3
+ *
+ */
+public class ValidationStatusProviderModelsProperty extends ListProperty {
+ public Object getElementType() {
+ return IObservable.class;
+ }
+
+ public IObservableList observe(Realm realm, Object source) {
+ return ((ValidationStatusProvider) source).getModels();
+ }
+
+ public String toString() {
+ return "ValidationStatusProvider#models[] <IObservable>"; //$NON-NLS-1$
+ }
+}

Back to the top