Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2012-11-22 12:14:14 +0000
committerTobias Schwarz2012-11-22 12:14:39 +0000
commit7aeb78abbc0eac3c2a64183220e6f01312206537 (patch)
treeaba05615d3e4f6939fb0c661ed96d7a4ccfc485f /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui
parentd9007711ed5119abfaad851955898a520d7642f4 (diff)
downloadorg.eclipse.tcf-7aeb78abbc0eac3c2a64183220e6f01312206537.tar.gz
org.eclipse.tcf-7aeb78abbc0eac3c2a64183220e6f01312206537.tar.xz
org.eclipse.tcf-7aeb78abbc0eac3c2a64183220e6f01312206537.zip
[Target Explorer] fix editor dirty state
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/editor/SourceLookupEditorPage.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/editor/SourceLookupEditorPage.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/editor/SourceLookupEditorPage.java
index b9e75bde2..bc8487db6 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/editor/SourceLookupEditorPage.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/editor/SourceLookupEditorPage.java
@@ -9,6 +9,7 @@
*******************************************************************************/
package org.eclipse.tcf.te.tcf.launch.ui.editor;
+import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.internal.ui.sourcelookup.SourceLookupPanel;
import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
import org.eclipse.swt.SWT;
@@ -38,6 +39,17 @@ public class SourceLookupEditorPage extends AbstractTcfLaunchTabContainerEditorP
performApply(getLaunchConfig(getPeerModel(getEditorInput())));
checkLaunchConfigDirty();
}
+ /* (non-Javadoc)
+ * @see org.eclipse.debug.internal.ui.sourcelookup.SourceLookupPanel#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
+ */
+ @Override
+ public void initializeFrom(ILaunchConfiguration configuration) {
+ boolean oldDirty = getEditor().isDirty() || checkLaunchConfigDirty();
+ super.initializeFrom(configuration);
+ if (!oldDirty && checkLaunchConfigDirty()) {
+ extractData();
+ }
+ }
};
}
}

Back to the top