Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-10-08 07:05:38 +0000
committerUwe Stieber2012-10-08 07:09:08 +0000
commitad0d5ad7e90da6077b6c1b322ff10a7e140f61ea (patch)
tree85b7ad2ccaeebf405c4b997ce0a345e72e053e7a /target_explorer
parent056e6409013a42712c511fe794b927463ed5b3e4 (diff)
downloadorg.eclipse.tcf-ad0d5ad7e90da6077b6c1b322ff10a7e140f61ea.tar.gz
org.eclipse.tcf-ad0d5ad7e90da6077b6c1b322ff10a7e140f61ea.tar.xz
org.eclipse.tcf-ad0d5ad7e90da6077b6c1b322ff10a7e140f61ea.zip
Target Explorer: Add preDoSave(IProgressMonitor) method to AbstractEditorPage
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/Editor.java7
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/pages/AbstractEditorPage.java11
2 files changed, 18 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/Editor.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/Editor.java
index 01c458172..3c0a6a1c0 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/Editor.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/Editor.java
@@ -320,6 +320,13 @@ public final class Editor extends FormEditor implements IPersistableEditor, ITab
*/
@Override
public void doSave(IProgressMonitor monitor) {
+ // The pages may require some save pre processing
+ for (Object page : pages) {
+ if (page instanceof AbstractEditorPage) {
+ ((AbstractEditorPage)page).preDoSave(monitor);
+ }
+ }
+ // Commit the page changes
commitPages(true);
// The pages may require some save post processing
for (Object page : pages) {
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/pages/AbstractEditorPage.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/pages/AbstractEditorPage.java
index 9dea4562d..3bbac38ec 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/pages/AbstractEditorPage.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/pages/AbstractEditorPage.java
@@ -112,6 +112,17 @@ public abstract class AbstractEditorPage extends FormPage implements IEditorPage
* @param monitor The progress monitor or <code>null</code>
* @see Editor#doSave(IProgressMonitor)
*/
+ public void preDoSave(IProgressMonitor monitor) {
+ // do nothing
+ }
+
+ /**
+ * Called from the parent properties editor <code>doSave(IProgressMonitor)</code>
+ * method.
+ *
+ * @param monitor The progress monitor or <code>null</code>
+ * @see Editor#doSave(IProgressMonitor)
+ */
public void postDoSave(IProgressMonitor monitor) {
// do nothing
}

Back to the top