Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2010-12-27 04:03:16 -0500
committerMilos Kleint2010-12-27 04:03:16 -0500
commit1b77821f02ba27fdbc07e5df83f0b56f17210a0f (patch)
tree5ee9007bc5a80827b83fbdb9b64a09665960fb42
parent9d5f64a20db41e4c57fc9492c0648f44fd9b777d (diff)
downloadm2e-core-1b77821f02ba27fdbc07e5df83f0b56f17210a0f.tar.gz
m2e-core-1b77821f02ba27fdbc07e5df83f0b56f17210a0f.tar.xz
m2e-core-1b77821f02ba27fdbc07e5df83f0b56f17210a0f.zip
the addition of workspace resource listener was added at pretty dubious place, changed to a more predictable location (MavenPomEditor.init())
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java4
1 files changed, 3 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 bafc906c..1be781cd 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
@@ -1009,7 +1009,6 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
IFileEditorInput fileInput = (IFileEditorInput) input;
pomFile = fileInput.getFile();
pomFile.refreshLocal(1, null);
- ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
}
mavenProject = SelectionUtil.getMavenProject(input, monitor);
@@ -1075,6 +1074,9 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
setPartName(editorInput.getToolTipText());
// setContentDescription(name);
super.init(site, editorInput);
+ if(editorInput instanceof IFileEditorInput) {
+ ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
+ }
activationListener = new MavenPomActivationListener(site.getWorkbenchWindow().getPartService());
}

Back to the top