summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Trimble2012-10-25 19:22:05 (EDT)
committerIan Trimble2012-10-25 19:22:05 (EDT)
commitc1f55d77da02f200f91f0214d5c50e6d6ac7900d (patch)
tree21defa6571a0ade48eb6549cb80a6795f18c7957
parent960f588193faabbe8f4ff9be8773218a47a7138e (diff)
downloadwebtools.jsf-c1f55d77da02f200f91f0214d5c50e6d6ac7900d.zip
webtools.jsf-c1f55d77da02f200f91f0214d5c50e6d6ac7900d.tar.gz
webtools.jsf-c1f55d77da02f200f91f0214d5c50e6d6ac7900d.tar.bz2
[Regression] Incorrect WPE model returned from HTMLEditor after page name change.
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java
index 720470f..143c156 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java
@@ -856,6 +856,12 @@ public final class HTMLEditor extends MultiPageEditorPart implements
case IEditorPart.PROP_INPUT: {
if (source == _textEditor) {
if (_textEditor.getEditorInput() != getEditorInput()) {
+ //Bug 392859 - [Regression] Incorrect WPE model returned from HTMLEditor after page name change.
+ // release the old model
+ if (_model != null) {
+ _model.releaseFromEdit();
+ _model = null;
+ }
setInput(_textEditor.getEditorInput());
// title should always change when input changes.
// create runnable for following post call