diff options
author | Darin Wright | 2003-08-08 16:36:44 +0000 |
---|---|---|
committer | Darin Wright | 2003-08-08 16:36:44 +0000 |
commit | 95338c73bfb2399f8a9c41543e37a6ae218e1e2e (patch) | |
tree | 4dc0e29c339285b91376a47186a903a29d0d3e5f /org.eclipse.ui.externaltools | |
parent | a1e9022b47ed9f33403854a05e81168b90303974 (diff) | |
download | eclipse.platform.debug-95338c73bfb2399f8a9c41543e37a6ae218e1e2e.tar.gz eclipse.platform.debug-95338c73bfb2399f8a9c41543e37a6ae218e1e2e.tar.xz eclipse.platform.debug-95338c73bfb2399f8a9c41543e37a6ae218e1e2e.zip |
bug 41276 - Clarify ILaunchConfiguration#getLocation()
Diffstat (limited to 'org.eclipse.ui.externaltools')
-rw-r--r-- | org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java | 3 |
1 files changed, 1 insertions, 2 deletions
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 2075afd70..943138c2c 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 @@ -322,7 +322,6 @@ public final class BuilderPropertyPage extends PropertyPage { private ICommand toBuildCommand(ILaunchConfiguration config, ICommand command) throws CoreException { Map args= null; if (isUnmigratedConfig(config)) { - ILaunchConfigurationWorkingCopy workingCopy= ((ILaunchConfigurationWorkingCopy) config); // This config represents an old external tool builder that hasn't // been edited. Try to find the old ICommand and reuse the arguments. // The goal here is to not change the storage format of old, unedited builders. @@ -1045,7 +1044,7 @@ public final class BuilderPropertyPage extends PropertyPage { * @return whether the given config represents an unmigrated builder */ private boolean isUnmigratedConfig(ILaunchConfiguration config) { - return config instanceof ILaunchConfigurationWorkingCopy && ((ILaunchConfigurationWorkingCopy) config).getOriginal() == null; + return config.isWorkingCopy() && ((ILaunchConfigurationWorkingCopy) config).getOriginal() == null; } private void deleteConfigurations() { |