Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2005-09-30 15:35:21 +0000
committerDarin Wright2005-09-30 15:35:21 +0000
commit0c266d2e4588655d925910e51f060877d16e2c02 (patch)
tree360d010c139266c21031cf4ec92f19280492bb96 /org.eclipse.debug.ui
parentc9aa6078900c5005aad633e4fa750f7e834291a3 (diff)
downloadeclipse.platform.debug-0c266d2e4588655d925910e51f060877d16e2c02.tar.gz
eclipse.platform.debug-0c266d2e4588655d925910e51f060877d16e2c02.tar.xz
eclipse.platform.debug-0c266d2e4588655d925910e51f060877d16e2c02.zip
Bug 66576 - perspectives pref page tab does not take activities into accoutn
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/icons/full/obj16/help_tab.gifbin259 -> 0 bytes
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java1
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java1
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java185
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java14
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java8
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties5
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SharedLaunchTab.java125
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SharedLaunchTabGroup.java45
10 files changed, 108 insertions, 278 deletions
diff --git a/org.eclipse.debug.ui/icons/full/obj16/help_tab.gif b/org.eclipse.debug.ui/icons/full/obj16/help_tab.gif
deleted file mode 100644
index 9d70301da..000000000
--- a/org.eclipse.debug.ui/icons/full/obj16/help_tab.gif
+++ /dev/null
Binary files differ
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java
index 5fd003780..5a1ef4b9c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java
@@ -166,7 +166,6 @@ public class DebugPluginImages {
declareRegistryImage(IInternalDebugUIConstants.IMG_OBJS_REFRESH_TAB, OBJECT + "refresh_tab.gif"); //$NON-NLS-1$
declareRegistryImage(IInternalDebugUIConstants.IMG_OBJS_PERSPECTIVE_TAB, OBJECT + "persp_tab.gif"); //$NON-NLS-1$
declareRegistryImage(IDebugUIConstants.IMG_OBJS_ENVIRONMENT, OBJECT + "environment_obj.gif"); //$NON-NLS-1$
- declareRegistryImage(IInternalDebugUIConstants.IMG_OBJS_HELP_TAB, OBJECT + "help_tab.gif"); //$NON-NLS-1$
// Views
declareRegistryImage(IDebugUIConstants.IMG_VIEW_BREAKPOINTS, VIEW + "breakpoint_view.gif"); //$NON-NLS-1$
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java
index 722eb32c2..519b2397a 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java
@@ -97,7 +97,6 @@ public interface IInternalDebugUIConstants {
public static final String IMG_OBJECT_MEMORY_CHANGED="IMG_OBJECT_MEMORY_CHANGED"; //$NON-NLS-1$
public static final String IMG_OBJECT_MEMORY="IMG_OBJECT_MEMORY"; //$NON-NLS-1$
public static final String IMG_OBJS_BREAKPOINT_TYPE="IMG_OBJ_BREAKPOINT_TYPE"; //$NON-NLS-1$
- public static final String IMG_OBJS_HELP_TAB = "IMG_OBJS_HELP_TAB"; //$NON-NLS-1$
// wizard images
public static final String IMG_WIZBAN_IMPORT_BREAKPOINTS = "IMG_WIZBAN_IMPORT_BREAKPOINTS"; //$NON-NLS-1$
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java
index 1f40a94a6..725e9576d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java
@@ -190,7 +190,7 @@ public class LaunchConfigurationPresentationManager {
public String getDescription(ILaunchConfigurationType configType, String mode) {
LaunchConfigurationPresentationManager manager = LaunchConfigurationPresentationManager.getDefault();
LaunchConfigurationTabGroupExtension extension = manager.getExtension(configType.getAttribute("id"), mode); //$NON-NLS-1$
- return extension.getDescription(mode);
+ return (extension != null ? extension.getDescription(mode) : null);
}
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java
index 2308ff792..2616a02dd 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java
@@ -36,6 +36,7 @@ import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.custom.StackLayout;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
@@ -148,6 +149,18 @@ public class LaunchConfigurationTabGroupViewer extends Viewer {
* launch configuration type or <code>null</code> if none.
*/
private String fDescription = null;
+
+ /**
+ * A placeholder for switching between the tabs for a config and the getting started tab
+ * @since 3.2
+ */
+ private Composite fTabPlaceHolder = null;
+
+ /**
+ * A new composite replacing the perspectives tab
+ * @since 3.2
+ */
+ private Composite fGettingStarted = null;
/**
* Constructs a viewer in the given composite, contained by the given
@@ -232,18 +245,33 @@ public class LaunchConfigurationTabGroupViewer extends Viewer {
gd = new GridData();
gd.horizontalSpan = 2;
spacer.setLayoutData(gd);
-
- fTabComposite = new Composite(container, SWT.NONE);
+
+ /*
+ * fix for bug 66576 and 79709
+ */
+ fTabPlaceHolder = new Composite(container, SWT.NONE);
+ fTabPlaceHolder.setLayout(new StackLayout());
+ gd = new GridData(GridData.FILL_BOTH);
+ gd.horizontalSpan = 2;
+ fTabPlaceHolder.setLayoutData(gd);
+
+ fGettingStarted = new Composite(fTabPlaceHolder, SWT.NONE);
+ fGettingStarted.setLayout(new GridLayout());
+ gd = new GridData(GridData.FILL_BOTH);
+ fGettingStarted.setLayoutData(gd);
+
+ createGettingStarted(fGettingStarted);
+
+ fTabComposite = new Composite(fTabPlaceHolder, SWT.NONE);
GridLayout outerTabCompositeLayout = new GridLayout();
outerTabCompositeLayout.marginHeight = 0;
outerTabCompositeLayout.marginWidth = 0;
fTabComposite.setLayout(outerTabCompositeLayout);
gd = new GridData(GridData.FILL_BOTH);
- gd.horizontalSpan = 2;
fTabComposite.setLayoutData(gd);
createTabFolder(fTabComposite);
-
+
Composite buttonComp = new Composite(container, SWT.NONE);
GridLayout buttonCompLayout = new GridLayout();
buttonCompLayout.numColumns = 2;
@@ -278,6 +306,48 @@ public class LaunchConfigurationTabGroupViewer extends Viewer {
}
+ /**
+ * Simple method to create a spacer in the page
+ *
+ * @param composite the composite to add the spacer to
+ * @param columnSpan the amount of space for the spacer
+ * @since 3.2
+ */
+ protected void createSpacer(Composite composite, int columnSpan) {
+ Label label = new Label(composite, SWT.NONE);
+ GridData gd = new GridData();
+ gd.horizontalSpan = columnSpan;
+ label.setLayoutData(gd);
+ }// end createSpacer
+
+ /**
+ * Creates some help text for the tab group launch types
+ * @param parent thep arent composite
+ * @since 3.2
+ */
+ private void createGettingStarted(Composite parent) {
+ Font font = parent.getFont();
+ GridData gd = null;
+ createSpacer(parent, 1);
+ Label label = new Label(parent, SWT.LEFT | SWT.WRAP);
+ label.setFont(font);
+ label.setText(MessageFormat.format(LaunchConfigurationsMessages.LaunchConfigurationTabGroupViewer_2, null));
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.widthHint = parent.getBounds().width - 30;
+ label.setLayoutData(gd);
+ createSpacer(parent, 1);
+ label = new Label(parent, SWT.LEFT | SWT.WRAP);
+ label.setFont(font);
+ label.setText(MessageFormat.format(LaunchConfigurationsMessages.LaunchConfigurationTabGroupViewer_1, null));
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.widthHint = parent.getBounds().width - 30;
+ label.setLayoutData(gd);
+ }
+
+ /**
+ * Creates the tab folder for displaying config instances
+ * @param parent
+ */
private void createTabFolder(Composite parent) {
Point size = null;
if (fTabFolder != null) {
@@ -465,18 +535,25 @@ public class LaunchConfigurationTabGroupViewer extends Viewer {
public void run() {
try {
if (fInput instanceof ILaunchConfiguration) {
+ /*
+ * fix for bug 66576 and 79709
+ */
+ ((StackLayout)fTabPlaceHolder.getLayout()).topControl = fTabComposite;
+ fTabPlaceHolder.layout(true);
ILaunchConfiguration configuration = (ILaunchConfiguration)fInput;
setOriginal(configuration);
setWorkingCopy(configuration.getWorkingCopy());
displayInstanceTabs();
} else if (fInput instanceof ILaunchConfigurationType) {
- ILaunchConfiguration configuration = LaunchConfigurationManager.getSharedTypeConfig((ILaunchConfigurationType)fInput);
- setOriginal(configuration);
- setWorkingCopy(configuration.getWorkingCopy());
- displaySharedTabs();
+ /*
+ * fix for bug 66576 and 79709
+ */
+ fDescription = getDescription((ILaunchConfigurationType)fInput);
+ setNoInput();
+ refreshStatus();
} else {
setNoInput();
- }
+ }//end else
setRedraw(true);
} catch (CoreException ce) {
errorDialog(ce);
@@ -491,7 +568,10 @@ public class LaunchConfigurationTabGroupViewer extends Viewer {
private void setNoInput() {
setOriginal(null);
setWorkingCopy(null);
- getVisibleArea().setVisible(false);
+ fNameLabel.setVisible(false);
+ fNameWidget.setVisible(false);
+ ((StackLayout)fTabPlaceHolder.getLayout()).topControl = fGettingStarted;
+ fTabPlaceHolder.layout(true);
disposeExistingTabs();
}
@@ -558,65 +638,13 @@ public class LaunchConfigurationTabGroupViewer extends Viewer {
}
/**
- * Displays tabs for the current config type
- */
- protected void displaySharedTabs() {
- // Turn on initializing flag to ignore message updates
- setInitializingTabs(true);
-
- ILaunchConfigurationType type = null;
- try {
- type = getWorkingCopy().getType();
- showSharedTabsFor(type);
- } catch (CoreException e) {
- errorDialog(e);
- setInitializingTabs(false);
- return;
- }
- // hide the name area
- fNameLabel.setVisible(false);
- fNameWidget.setVisible(false);
- // Update the name field before to avoid verify error
- getNameWidget().setText(getWorkingCopy().getName());
-
- // Retrieve the current tab group. If there is none, clean up and leave
- ILaunchConfigurationTabGroup tabGroup = getTabGroup();
- if (tabGroup == null) {
- IStatus status = new Status(IStatus.ERROR, DebugUIPlugin.getUniqueIdentifier(), 0, MessageFormat.format(LaunchConfigurationsMessages.LaunchConfigurationTabGroupViewer_No_tabs_defined_for_launch_configuration_type__0__1, new String[]{type.getName()}), null);
- CoreException e = new CoreException(status);
- errorDialog(e);
- setInitializingTabs(false);
- return;
- }
-
- // Update the tabs with the new working copy
- tabGroup.initializeFrom(getWorkingCopy());
-
- // Update the name field after in case client changed it
- getNameWidget().setText(getWorkingCopy().getName());
-
- fCurrentTabIndex = getTabFolder().getSelectionIndex();
-
- // Turn off initializing flag to update message
- setInitializingTabs(false);
-
- if (!getVisibleArea().isVisible()) {
- getVisibleArea().setVisible(true);
- }
-
- fDescription = getDescription(null);
-
- refreshStatus();
- }
-
- /**
* Populate the tabs in the configuration edit area to be appropriate to the current
* launch configuration type.
*/
private void showInstanceTabsFor(ILaunchConfigurationType configType) {
// Don't do any work if the current tabs are for the current config type
- if (getTabType() != null && getTabType().equals(configType) && !(getTabGroup() instanceof SharedLaunchTabGroup)) {
+ if (getTabType() != null && getTabType().equals(configType)) {
return;
}
@@ -671,28 +699,6 @@ public class LaunchConfigurationTabGroupViewer extends Viewer {
}
/**
- * Populate the tabs in the configuration edit area for the shared info
- * for the given launch config type.
- */
- private void showSharedTabsFor(ILaunchConfigurationType configType) {
-
- // Don't do any work if the current tabs are for the current config type
- if (getTabType() != null && getTabType().equals(configType) && (getTabGroup() instanceof SharedLaunchTabGroup)) {
- return;
- }
- // Build the new tabs
- ILaunchConfigurationTabGroup group = new SharedLaunchTabGroup(configType);
- group.createTabs(getLaunchConfigurationDialog(), getLaunchConfigurationDialog().getMode());
- ILaunchConfigurationTab[] tabs = group.getTabs();
- for (int i = 0; i < tabs.length; i++) {
- tabs[i].setLaunchConfigurationDialog(getLaunchConfigurationDialog());
- }//end for
- showTabsFor(group);
- setTabType(configType);
- setTabGroup(group);
- }
-
- /**
* Create the tabs in the configuration edit area for the given tab group.
*/
private void showTabsFor(ILaunchConfigurationTabGroup tabGroup) {
@@ -931,9 +937,6 @@ public class LaunchConfigurationTabGroupViewer extends Viewer {
if(isInitializingTabs()) {
return false;
}
- if (getActiveTab() instanceof SharedLaunchTab) {
- return false;
- }
if (getWorkingCopy() == null) {
return false;
}
@@ -1219,11 +1222,7 @@ public class LaunchConfigurationTabGroupViewer extends Viewer {
* Notification that the 'Revert' button has been pressed
*/
protected void handleRevertPressed() {
- if (getActiveTab() instanceof SharedLaunchTab) {
- inputChanged(getTabType());
- } else {
- inputChanged(getOriginal());
- }
+ inputChanged(getOriginal());
}
/**
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
index c273e383c..0fb43bc9d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
@@ -755,10 +755,16 @@ public class LaunchConfigurationsDialog extends TitleAreaDialog implements ILaun
ISelection selection = event.getSelection();
if (!selection.isEmpty()) {
if (selection instanceof IStructuredSelection) {
+ //fix for bug 111079
+ Button button = getButton(ID_LAUNCH_BUTTON);
IStructuredSelection structuredSelection = (IStructuredSelection)selection;
if (structuredSelection.size() == 1) {
newInput = structuredSelection.getFirstElement();
- }
+ button.setEnabled(true);
+ }//end if
+ else {
+ button.setEnabled(false);
+ }//end else
}
}
ILaunchConfiguration original = getTabViewer().getOriginal();
@@ -1076,7 +1082,9 @@ public class LaunchConfigurationsDialog extends TitleAreaDialog implements ILaun
}
String mode = getMode();
close();
- DebugUITools.launch(config, mode);
+ if(config != null) {
+ DebugUITools.launch(config, mode);
+ }//end if
}
/***************************************************************************************
@@ -1296,7 +1304,7 @@ public class LaunchConfigurationsDialog extends TitleAreaDialog implements ILaun
setErrorMessage(getTabViewer().getErrorMesssage());
setMessage(getTabViewer().getMessage());
}
-
+
/**
* Returns the launch configuration selection area control.
*
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java
index 55629e1d0..194f30c69 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java
@@ -149,11 +149,7 @@ public class LaunchConfigurationsMessages extends NLS {
NLS.initializeMessages(BUNDLE_NAME, LaunchConfigurationsMessages.class);
}
- public static String SharedLaunchTab_0;
+ public static String LaunchConfigurationTabGroupViewer_1;
- public static String SharedLaunchTab_1;
-
- public static String SharedLaunchTab_2;
-
- public static String SharedLaunchTab_3;
+ public static String LaunchConfigurationTabGroupViewer_2;
} \ No newline at end of file
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
index bc9bd0e64..45c6f54fa 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
@@ -45,6 +45,8 @@ LaunchConfigurationDialog__Name__16=&Name:
LaunchConfigurationDialog_An_exception_occurred_while_retrieving_launch_configurations_20=An exception occurred while retrieving launch configurations
LaunchConfigurationDialog_Cancel_34=Cancel
LaunchConfigurationTabGroupViewer_0={0} is an invalid character in launch configuration name {1}
+LaunchConfigurationTabGroupViewer_1=To edit or delete an existing configuration, select it in the tree to display its settings.
+LaunchConfigurationTabGroupViewer_2=This dialog is used to configure applications to be executed. The top level items in the tree to the left are the types of applications you can create. Individual configurations are grouped beneath their type. To configure a new application, select the appropriate application type and click the 'New' button located below the list. You can create as many configurations as you wish for each application type.
LaunchConfigurationDialog_Create__manage__and_run_launch_configurations_8=Create, manage, and run configurations
LaunchConfigurationDialog_Dele_te_14=Dele&te
LaunchConfigurationDialog_Discard_changes__38=Discard changes?
@@ -137,6 +139,3 @@ PerspectiveManager_15=This kind of launch is associated with the {0} perspective
DebugModePromptStatusHandler_0=Breakpoints in Workspace
DebugModePromptStatusHandler_1=There are breakpoints enabled in the workspace. Would you rather launch in debug mode?
-SharedLaunchTab_0=To create a new configuration select a configuration type in the list to the left and click the new button located directly below the list.
-SharedLaunchTab_2=Getting Started
-SharedLaunchTab_3=Create a new {0} launch configuration.
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SharedLaunchTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SharedLaunchTab.java
deleted file mode 100644
index 82208485e..000000000
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SharedLaunchTab.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.debug.internal.ui.launchConfigurations;
-
-import java.text.MessageFormat;
-
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.debug.ui.DebugUITools;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-
-/**
- * Provides a general tab for launch configuration types, since tpreference setting have been moved to
- * to Perspective preference page in the main preferences dialog
- *
- * @since 3.2
- */
-public class SharedLaunchTab extends AbstractLaunchConfigurationTab {
-
- /**
- * The launch config type selected to display this tab
- */
- private ILaunchConfigurationType fType = null;
-
- /**
- * The default constructor
- */
- public SharedLaunchTab(ILaunchConfigurationType type) {
- super();
- fType = type;
- }//end constructor
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#dispose()
- */
- public void dispose() {
- super.dispose();
- }//end dispose
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.core.ILaunchConfigurationListener#launchConfigurationAdded(org.eclipse.debug.core.ILaunchConfiguration)
- */
- public void launchConfigurationAdded(ILaunchConfiguration configuration) {}
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.core.ILaunchConfigurationListener#launchConfigurationChanged(org.eclipse.debug.core.ILaunchConfiguration)
- */
- public void launchConfigurationChanged(ILaunchConfiguration configuration) {}
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.core.ILaunchConfigurationListener#launchConfigurationRemoved(org.eclipse.debug.core.ILaunchConfiguration)
- */
- public void launchConfigurationRemoved(ILaunchConfiguration configuration) {}
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
- */
- public void createControl(Composite parent) {
- Font font = parent.getFont();
- Composite composite = new Composite(parent, SWT.NONE);
- composite.setLayout(new GridLayout(1, false));
- composite.setFont(font);
- GridData gd = null;
- createVerticalSpacer(composite, 1);
- Label label = new Label(composite, SWT.LEFT | SWT.WRAP);
- label.setFont(font);
- label.setText(MessageFormat.format(LaunchConfigurationsMessages.SharedLaunchTab_0, null));
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.widthHint = composite.getBounds().width - 30;
- label.setLayoutData(gd);
- composite.layout(true, true);
- setControl(composite);
- }//end create control
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
- */
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {}
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
- */
- public void initializeFrom(ILaunchConfiguration configuration) {}
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
- */
- public void performApply(ILaunchConfigurationWorkingCopy configuration) {}
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getName()
- */
- public String getName() {
- return LaunchConfigurationsMessages.SharedLaunchTab_2;
- }//end getName
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getImage()
- */
- public Image getImage() {
- return DebugUITools.getImage(IInternalDebugUIConstants.IMG_OBJS_HELP_TAB);
- }
-
- public String getMessage() {
- return MessageFormat.format(LaunchConfigurationsMessages.SharedLaunchTab_3, new String[] {fType.getName()});
- }
-
-}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SharedLaunchTabGroup.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SharedLaunchTabGroup.java
deleted file mode 100644
index 4896e9f81..000000000
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SharedLaunchTabGroup.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.debug.internal.ui.launchConfigurations;
-
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
-import org.eclipse.debug.ui.ILaunchConfigurationDialog;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-
-/**
- * A tab group for the general shared tab for all launch configurations
- *
- * @since 3.2
- */
-public class SharedLaunchTabGroup extends AbstractLaunchConfigurationTabGroup {
-
- /**
- * The LaunchConfigType that was selected to show this tab
- */
- private ILaunchConfigurationType fType;
-
- /**
- * Default constructor
- */
- public SharedLaunchTabGroup(ILaunchConfigurationType type) {
- fType = type;
- }//end constructor
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, java.lang.String)
- */
- public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
- ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {new SharedLaunchTab(fType)};
- setTabs(tabs);
- }//end createTabs
-
-}//end class

Back to the top