diff options
author | Michael Rennie | 2009-05-04 14:36:39 +0000 |
---|---|---|
committer | Michael Rennie | 2009-05-04 14:36:39 +0000 |
commit | 1c2444c9eeb54031366cc408322bad4bcbf39b76 (patch) | |
tree | 978fe4153fded4daea6caca596d9e55c72ef6eda | |
parent | 64b41c85887467673a3696d2df0f04fcb1c7d5b4 (diff) | |
download | eclipse.jdt.debug-1c2444c9eeb54031366cc408322bad4bcbf39b76.tar.gz eclipse.jdt.debug-1c2444c9eeb54031366cc408322bad4bcbf39b76.tar.xz eclipse.jdt.debug-1c2444c9eeb54031366cc408322bad4bcbf39b76.zip |
Bug 273656 Generated launch configuration has no name if anonymous class is instantiated in main
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaApplicationLaunchShortcut.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaApplicationLaunchShortcut.java index 3ac99ab3c..29ec2f2cc 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaApplicationLaunchShortcut.java +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaApplicationLaunchShortcut.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2008 IBM Corporation and others. + * Copyright (c) 2007, 2009 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 @@ -81,7 +81,7 @@ public class JavaApplicationLaunchShortcut extends JavaLaunchShortcut { ILaunchConfigurationWorkingCopy wc = null; try { ILaunchConfigurationType configType = getConfigurationType(); - wc = configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(type.getElementName())); + wc = configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(type.getTypeQualifiedName('.'))); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, type.getFullyQualifiedName()); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName()); wc.setMappedResources(new IResource[] {type.getUnderlyingResource()}); diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/DebugTypeSelectionDialog.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/DebugTypeSelectionDialog.java index 7f1f2c358..56d67bbbc 100755 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/DebugTypeSelectionDialog.java +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/DebugTypeSelectionDialog.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2007 IBM Corporation and others. + * Copyright (c) 2006, 2009 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 @@ -72,7 +72,7 @@ public class DebugTypeSelectionDialog extends FilteredItemsSelectionDialog { public String getText(Object element) { if(element instanceof IType) { IType type = (IType) element; - String label = type.getElementName(); + String label = type.getTypeQualifiedName(); String container = getDeclaringContainerName(type); if(container != null && !"".equals(container)) { //$NON-NLS-1$ label += " - "+container; //$NON-NLS-1$ |