Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2004-04-30 20:50:25 -0400
committerDarin Swanson2004-04-30 20:50:25 -0400
commitf6bb5cc981ad952871849c2f71651568226fdd6e (patch)
tree1c41264255a6f153e3d392d0afcf274fd4d9980e
parentc8fed8385f25bb5fa8894f9420c23f6b2c13d318 (diff)
downloadeclipse.platform.debug-f6bb5cc981ad952871849c2f71651568226fdd6e.tar.gz
eclipse.platform.debug-f6bb5cc981ad952871849c2f71651568226fdd6e.tar.xz
eclipse.platform.debug-f6bb5cc981ad952871849c2f71651568226fdd6e.zip
Bug 60286 - API Request: Ability to open launch configuration properties dialog on a specific tab
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPropertiesDialog.java6
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java18
2 files changed, 23 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPropertiesDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPropertiesDialog.java
index d441152b4..4c4f19934 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPropertiesDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPropertiesDialog.java
@@ -12,7 +12,7 @@ package org.eclipse.debug.internal.ui.launchConfigurations;
import java.text.MessageFormat;
-
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationListener;
@@ -80,6 +80,10 @@ public class LaunchConfigurationPropertiesDialog extends LaunchConfigurationsDia
protected void initializeContent() {
getTabViewer().setInput(getLaunchConfiguration());
+ IStatus status = getInitialStatus();
+ if (status != null) {
+ handleStatus(status);
+ }
}
/**
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java
index 7dd20b766..815951242 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java
@@ -400,9 +400,27 @@ public class DebugUITools {
* @since 2.1
*/
public static int openLaunchConfigurationPropertiesDialog(Shell shell, ILaunchConfiguration configuration, String groupIdentifier) {
+ return openLaunchConfigurationPropertiesDialog(shell, configuration, groupIdentifier, null);
+ }
+
+ /**
+ * Open the launch configuration properties dialog on the specified launch
+ * configuration.
+ *
+ * @param shell the parent shell for the launch configuration dialog
+ * @param configuration the configuration to display
+ * @param group identifier of the launch group the launch configuration
+ * belongs to
+ * @param status the status to display, or <code>null</code> if none
+ * @return the return code from opening the launch configuration dialog -
+ * one of <code>Window.OK</code> or <code>Window.CANCEL</code>
+ * @since 3.0
+ */
+ public static int openLaunchConfigurationPropertiesDialog(Shell shell, ILaunchConfiguration configuration, String groupIdentifier, IStatus status) {
LaunchGroupExtension group = DebugUIPlugin.getDefault().getLaunchConfigurationManager().getLaunchGroup(groupIdentifier);
if (group != null) {
LaunchConfigurationPropertiesDialog dialog = new LaunchConfigurationPropertiesDialog(shell, configuration, group);
+ dialog.setInitialStatus(status);
return dialog.open();
} else {
return Window.CANCEL;

Back to the top