Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamed Hussein2012-10-15 20:18:55 -0400
committerMike Rennie2012-10-15 20:18:55 -0400
commit231ef131428719fb986eaa67511186dd9ec341fb (patch)
tree03487c5f5692283e236d4cff92c44a3e48a15164 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parentb55a4bb203803a86d0792de5f9f17103c6cc09a0 (diff)
downloadeclipse.platform.debug-231ef131428719fb986eaa67511186dd9ec341fb.tar.gz
eclipse.platform.debug-231ef131428719fb986eaa67511186dd9ec341fb.tar.xz
eclipse.platform.debug-231ef131428719fb986eaa67511186dd9ec341fb.zip
Bug 386673 - Show warning messages in launch configuration dialogv20121016-001855I20121016-0800
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java28
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ILaunchConfigurationTab2.java26
2 files changed, 52 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java
index c9f05cd20..dd4e4456c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation 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
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Mohamed Hussein (Mentor Graphics) - Added s/getWarningMessage (Bug 386673)
*******************************************************************************/
package org.eclipse.debug.ui;
@@ -39,7 +40,7 @@ import org.eclipse.ui.progress.WorkbenchJob;
* @see ILaunchConfigurationTab
* @since 2.0
*/
-public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigurationTab {
+public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigurationTab2 {
/**
* The control for this page, or <code>null</code>
@@ -58,6 +59,11 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura
private String fErrorMessage;
/**
+ * Current warning message, or <code>null</code>
+ */
+ private String fWarningMessage;
+
+ /**
* Current message, or <code>null</code>
*/
private String fMessage;
@@ -133,6 +139,14 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura
}
/**
+ * @see ILaunchConfigurationTab2#getWarningMessage()
+ * @since 3.9
+ */
+ public String getWarningMessage() {
+ return fWarningMessage;
+ }
+
+ /**
* @see ILaunchConfigurationTab#getMessage()
*/
public String getMessage() {
@@ -168,6 +182,16 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura
}
/**
+ * Sets this page's warning message, possibly <code>null</code>.
+ *
+ * @param warningMessage the warning message or <code>null</code>
+ * @since 3.9
+ */
+ protected void setWarningMessage(String warningMessage) {
+ fWarningMessage = warningMessage;
+ }
+
+ /**
* Sets this page's message, possibly <code>null</code>.
*
* @param message the message or <code>null</code>
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ILaunchConfigurationTab2.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ILaunchConfigurationTab2.java
new file mode 100644
index 000000000..b019f87fb
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ILaunchConfigurationTab2.java
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Mentor Graphics Corporation 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:
+ * Mohamed Hussein (Mentor Graphics) - initial API and implementation (Bug 386673)
+ *******************************************************************************/
+package org.eclipse.debug.ui;
+
+/**
+ * Optional enhancements for {@link ILaunchConfigurationTab}.
+ * @since 3.9
+ */
+public interface ILaunchConfigurationTab2 extends ILaunchConfigurationTab {
+
+ /**
+ * Returns a warning message to be displayed to the user
+ * or <code>null</code> if none is present.
+ * @return Returns a warning message to be displayed to the user
+ * or <code>null</code> if none is present.
+ */
+ public String getWarningMessage();
+} \ No newline at end of file

Back to the top