Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-01-04 06:45:33 -0500
committerUwe Stieber2012-01-04 06:45:33 -0500
commit107dd7c33b023710616bdc2dc3844d91446320e1 (patch)
treeee19c613ff7d693d23be6079c27a1aae1b740c48 /target_explorer/plugins/org.eclipse.tcf.te.ui.swt
parenta4fdbde6be3c1341cf24a032923b06bd080830dc (diff)
downloadorg.eclipse.tcf-107dd7c33b023710616bdc2dc3844d91446320e1.tar.gz
org.eclipse.tcf-107dd7c33b023710616bdc2dc3844d91446320e1.tar.xz
org.eclipse.tcf-107dd7c33b023710616bdc2dc3844d91446320e1.zip
Target Explorer: Added validation handling to peer node overview page
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.ui.swt')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.swt/META-INF/MANIFEST.MF1
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/interfaces/IValidatable.java31
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/interfaces/IValidatingContainer.java26
3 files changed, 58 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/META-INF/MANIFEST.MF b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/META-INF/MANIFEST.MF
index d2eb6acb0..033bcb87b 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/META-INF/MANIFEST.MF
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/META-INF/MANIFEST.MF
@@ -12,6 +12,7 @@ Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Export-Package: org.eclipse.tcf.te.ui.jface.dialogs,
org.eclipse.tcf.te.ui.jface.images,
+ org.eclipse.tcf.te.ui.jface.interfaces,
org.eclipse.tcf.te.ui.swt,
org.eclipse.tcf.te.ui.swt.activator;x-internal:=true,
org.eclipse.tcf.te.ui.swt.listener,
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/interfaces/IValidatable.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/interfaces/IValidatable.java
new file mode 100644
index 000000000..65325b024
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/interfaces/IValidatable.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Wind River Systems, Inc. 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:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.ui.jface.interfaces;
+
+import org.eclipse.jface.dialogs.IMessageProvider;
+
+/**
+ * Interface to be implemented by validatable UI elements like
+ * widgets, controls, sections or any other UI element with a
+ * validatable state.
+ */
+public interface IValidatable extends IMessageProvider {
+
+ /**
+ * Validates the state of the implementor.
+ * <p>
+ * On invocation, the method is expected to set the validatable
+ * elements message and message type ready to be queried immediately
+ * after the method returned.
+ *
+ * @return <code>True</code> if the validatable is valid, <code>false</code> otherwise.
+ */
+ public boolean isValid();
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/interfaces/IValidatingContainer.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/interfaces/IValidatingContainer.java
new file mode 100644
index 000000000..46950ae24
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/interfaces/IValidatingContainer.java
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Wind River Systems, Inc. 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:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.ui.jface.interfaces;
+
+
+/**
+ * Interface to be implemented by container managing the validation
+ * of contained validatable sub elements.
+ */
+public interface IValidatingContainer {
+
+ /**
+ * Validates the container status.
+ * <p>
+ * If necessary, set the corresponding messages and message types to signal when some sub
+ * elements of the container needs user attention.
+ */
+ public void validate();
+}

Back to the top