diff options
author | Darin Wright | 2010-04-06 14:27:24 +0000 |
---|---|---|
committer | Darin Wright | 2010-04-06 14:27:24 +0000 |
commit | d32ee88969c780ec513f5fb8bdd5cbb219f6770e (patch) | |
tree | d563d713dc52975d787e94f50001343b6ee121c5 | |
parent | 6a27be2e48a3a2ed7a1790e16a112a2c5746939b (diff) | |
download | eclipse.platform.debug-d32ee88969c780ec513f5fb8bdd5cbb219f6770e.tar.gz eclipse.platform.debug-d32ee88969c780ec513f5fb8bdd5cbb219f6770e.tar.xz eclipse.platform.debug-d32ee88969c780ec513f5fb8bdd5cbb219f6770e.zip |
Bug 308002 - LaunchConfigurationManager.isSharedConfig(Object receiver) too restrictive when identifying launch configurations
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java index 1ddbe86c2..6e8b888a9 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2010 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 @@ -30,6 +30,7 @@ import java.util.Set; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; +import javax.xml.transform.TransformerException; import org.eclipse.core.expressions.EvaluationContext; import org.eclipse.core.expressions.IEvaluationContext; @@ -39,6 +40,7 @@ import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.ISaveContext; import org.eclipse.core.resources.ISaveParticipant; import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.IExtensionPoint; import org.eclipse.core.runtime.IPath; @@ -984,6 +986,12 @@ public class LaunchConfigurationManager implements ILaunchListener, ISavePartici else if(receiver instanceof IEditorPart) { return isSharedConfig(((IEditorPart) receiver).getEditorInput()); } + else if (receiver instanceof IAdaptable) { + IFile file = (IFile) ((IAdaptable)receiver).getAdapter(IFile.class); + if (file != null) { + return isSharedConfig(file); + } + } return null; } |