Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2006-11-24 21:52:05 +0000
committerMichael Rennie2006-11-24 21:52:05 +0000
commit3b4983005c0712e230b790a5ee3333c90aaba99e (patch)
treecccf6b61be6b9cc5aa520602f76672a6233f7591
parent24780aaf2222aa8b83e853d22ac6bd7a69bae448 (diff)
downloadeclipse.platform.debug-3b4983005c0712e230b790a5ee3333c90aaba99e.tar.gz
eclipse.platform.debug-3b4983005c0712e230b790a5ee3333c90aaba99e.tar.xz
eclipse.platform.debug-3b4983005c0712e230b790a5ee3333c90aaba99e.zip
Bug 165829
[launching] the source lookup tab is the new apply button
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java3
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/sourcelookup/SourceLookupDialog.java3
2 files changed, 2 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java
index 6e90eaeae..46e4990c6 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java
@@ -357,9 +357,6 @@ public class SourceLookupPanel extends AbstractLaunchConfigurationTab implements
workingCopy.setAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_MEMENTO, fLocator.getMemento());
workingCopy.setAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_ID, fLocator.getId());
}
- if(!workingCopy.isReadOnly()) {
- workingCopy.doSave();
- }
}
catch(CoreException e) {
DebugUIPlugin.log(e);
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/sourcelookup/SourceLookupDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/sourcelookup/SourceLookupDialog.java
index d479ad567..bdda0aa7f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/sourcelookup/SourceLookupDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/sourcelookup/SourceLookupDialog.java
@@ -106,10 +106,11 @@ public class SourceLookupDialog extends TitleAreaDialog {
if(config != null) {
try {
copy = config.getWorkingCopy();
+ fPanel.performApply(copy);
+ copy.doSave();
}
catch (CoreException e) {DebugUIPlugin.log(e);}
}
- fPanel.performApply(copy);
super.okPressed();
}

Back to the top