Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2009-11-24 10:39:20 -0500
committerMichael Rennie2009-11-24 10:39:20 -0500
commitff2920c1e208e02a44dfa6f3a4151170a30fece7 (patch)
tree115301e0e90160cb7bfe3f1039d5059e232b0d6d
parent1a827220a000cc3e2265a17b0eade2873952d162 (diff)
downloadeclipse.platform.debug-ff2920c1e208e02a44dfa6f3a4151170a30fece7.tar.gz
eclipse.platform.debug-ff2920c1e208e02a44dfa6f3a4151170a30fece7.tar.xz
eclipse.platform.debug-ff2920c1e208e02a44dfa6f3a4151170a30fece7.zip
Bug 296007 - Follow-up to deprecated ILaunchManager#generateUniqueLaunchConfigurationNameFrom(String)
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchManager.java2
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CreateLaunchConfigurationAction.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DuplicateLaunchConfigurationAction.java2
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java2
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java4
6 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchManager.java
index 99c3b17c6..bceb23ecb 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchManager.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchManager.java
@@ -128,7 +128,7 @@ public interface ILaunchManager {
* @param namePrefix the String that the returned name must begin with
* @return launch configuration name
* @since 2.0
- * @deprecated since 3.5 clients should use the {@link #generateLaunchConfigurationName(String)} method which
+ * @deprecated since 3.6 clients should use the {@link #generateLaunchConfigurationName(String)} method which
* will perform validation of the name and correct unsupported name parts.
*/
public String generateUniqueLaunchConfigurationNameFrom(String namePrefix);
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java
index f20448b53..05dc0e47f 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java
@@ -143,7 +143,7 @@ public class MidiLaunchShortcut implements ILaunchShortcut {
ILaunchConfigurationType type = getLaunchType();
try {
ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, getLaunchManager().
- generateUniqueLaunchConfigurationNameFrom(
+ generateLaunchConfigurationName(
"[" + file.getProject().getName() + "] " + file.getName()));
workingCopy.setAttribute(MidiLaunchDelegate.ATTR_MIDI_FILE, file.getFullPath().toString());
workingCopy.setMappedResources(new IResource[]{file});
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CreateLaunchConfigurationAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CreateLaunchConfigurationAction.java
index b13ca8d21..9028cc207 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CreateLaunchConfigurationAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CreateLaunchConfigurationAction.java
@@ -65,7 +65,7 @@ public class CreateLaunchConfigurationAction extends AbstractLaunchConfiguration
type = (ILaunchConfigurationType) object;
}
try {
- ILaunchConfigurationWorkingCopy wc = type.newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom(LaunchConfigurationsMessages.CreateLaunchConfigurationAction_New_configuration_2));
+ ILaunchConfigurationWorkingCopy wc = type.newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(LaunchConfigurationsMessages.CreateLaunchConfigurationAction_New_configuration_2));
ILaunchConfigurationTabGroup tabGroup = LaunchConfigurationPresentationManager.getDefault().getTabGroup(wc, getMode());
// this only works because this action is only present when the dialog is open
ILaunchConfigurationDialog dialog = LaunchConfigurationsDialog.getCurrentlyVisibleLaunchConfigurationDialog();
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DuplicateLaunchConfigurationAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DuplicateLaunchConfigurationAction.java
index 825ed3c4a..aed60f47c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DuplicateLaunchConfigurationAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DuplicateLaunchConfigurationAction.java
@@ -44,7 +44,7 @@ public class DuplicateLaunchConfigurationAction extends AbstractLaunchConfigurat
*/
protected void performAction() {
ILaunchConfiguration original = (ILaunchConfiguration)getStructuredSelection().getFirstElement();
- String newName = DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom(original.getName());
+ String newName = DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(original.getName());
try {
ILaunchConfigurationWorkingCopy newWorkingCopy = original.copy(newName);
newWorkingCopy.doSave();
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java
index 4c52dd0ca..82115029d 100644
--- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java
+++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java
@@ -145,7 +145,7 @@ public class BuilderUtils {
public static ILaunchConfiguration duplicateConfiguration(IProject project, ILaunchConfiguration config) throws CoreException {
Map attributes= config.getAttributes();
String newName= new StringBuffer(config.getName()).append(ExternalToolsModelMessages.BuilderUtils_7).toString();
- newName= DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom(newName);
+ newName= DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(newName);
ILaunchConfigurationType newType= getConfigurationDuplicationType(config);
ILaunchConfigurationWorkingCopy newWorkingCopy= newType.newInstance(getBuilderFolder(project, true), newName);
newWorkingCopy.setAttributes(attributes);
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java
index 8c3694ee4..3f97506f2 100644
--- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java
+++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java
@@ -579,7 +579,7 @@ public final class BuilderPropertyPage extends PropertyPage implements ICheckSta
boolean wasAutobuilding= ResourcesPlugin.getWorkspace().getDescription().isAutoBuilding();
try {
ILaunchConfigurationWorkingCopy workingCopy = null;
- String name= DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom(ExternalToolsUIMessages.BuilderPropertyPage_New_Builder_7);
+ String name= DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(ExternalToolsUIMessages.BuilderPropertyPage_New_Builder_7);
workingCopy = type.newInstance(BuilderUtils.getBuilderFolder(getInputProject(), true), name);
StringBuffer buffer= new StringBuffer(IExternalToolConstants.BUILD_TYPE_FULL);
@@ -1096,7 +1096,7 @@ public final class BuilderPropertyPage extends PropertyPage implements ICheckSta
try {
ILaunchConfigurationWorkingCopy workingCopy = null;
String builderName = command.getBuilderName();
- String name= DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom(builderName);
+ String name= DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(builderName);
workingCopy = type.newInstance(BuilderUtils.getBuilderFolder(getInputProject(), true), name);
workingCopy.setAttribute(IExternalToolConstants.ATTR_DISABLED_BUILDER, builderName);

Back to the top