Author: dgeraskov
Date: 2009-05-13 06:02:54 -0400 (Wed, 13 May 2009)
New Revision: 15238
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/LaunchConfigurationResourceNameChange.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4277
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/LaunchConfigurationResourceNameChange.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/LaunchConfigurationResourceNameChange.java 2009-05-13
08:45:40 UTC (rev 15237)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/LaunchConfigurationResourceNameChange.java 2009-05-13
10:02:54 UTC (rev 15238)
@@ -18,8 +18,8 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
import org.hibernate.eclipse.console.HibernateConsoleMessages;
@@ -95,8 +95,7 @@
IPath newLaunchPath =
fNewPath.append(relativePath.removeFirstSegments(matchSegment));
IFile file = root.getFileForLocation(rootLoacation.append(newLaunchPath));
if (file != null){
- fLaunchConfiguration = fLaunchConfiguration.getWorkingCopy();
- ((ILaunchConfigurationWorkingCopy)
fLaunchConfiguration).setContainer(file.getParent());
+ fLaunchConfiguration =
DebugPlugin.getDefault().getLaunchManager().getLaunchConfiguration(file);
}
}
}