Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2020-05-11 14:54:16 +0000
committerMickael Istria2020-05-11 15:43:33 +0000
commit00486b805030a5e5dcd4db47ab0380fbd4c51297 (patch)
tree96e0ff22ee84f3267b038f04e936e88924053d90 /org.eclipse.m2e.editor
parent65402fe9379fe7d2aa5dbda826a23c2758413a84 (diff)
downloadm2e-core-00486b805030a5e5dcd4db47ab0380fbd4c51297.tar.gz
m2e-core-00486b805030a5e5dcd4db47ab0380fbd4c51297.tar.xz
m2e-core-00486b805030a5e5dcd4db47ab0380fbd4c51297.zip
Bug 563039 - [regression] POM editor ignores "Open XML page..." pref
Change-Id: If0cc4eef520b0c811a00d47a44d1b189b37f41ee Signed-off-by: Mickael Istria <mistria@redhat.com>
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
index cd3ee41d..cf6135b9 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
@@ -372,7 +372,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
boolean showXML = M2EUIPluginActivator.getDefault().getPreferenceStore()
.getBoolean(MavenPreferenceConstants.P_DEFAULT_POM_EDITOR_PAGE);
if(showXML) {
- setActivePage(null);
+ setActivePage(sourcePageIndex);
}
}
@@ -1018,6 +1018,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
*/
public void setSourcePage(ITextEditor sourcePage) {
this.sourcePage = sourcePage;
+ this.sourcePageIndex = pages.indexOf(sourcePage);
}
/**

Back to the top