Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvladt2011-03-30 14:50:44 -0400
committervladt2011-03-30 14:50:44 -0400
commit95343e2ab387dacfc3b5186a1d92779e240966a9 (patch)
treead011c5ed15e5767b268495b894cef80b7a23920 /org.eclipse.m2e.editor
parent183580780ca8647d6509bf300a6852c2254af169 (diff)
downloadm2e-core-95343e2ab387dacfc3b5186a1d92779e240966a9.tar.gz
m2e-core-95343e2ab387dacfc3b5186a1d92779e240966a9.tar.xz
m2e-core-95343e2ab387dacfc3b5186a1d92779e240966a9.zip
341413: Eclipse blocks/hangs if a pom file is saved during a build operation
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java19
1 files changed, 7 insertions, 12 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 75b396d9..f100b7b9 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
@@ -161,7 +161,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
List<IPomFileChangedListener> fileChangeListeners = new ArrayList<IPomFileChangedListener>();
- protected boolean resourceChangeEventSkip = false;
+ private boolean resourceChangeEventSkip = false;
public MavenPomEditor() {
modelManager = StructuredModelManager.getModelManager();
@@ -770,17 +770,12 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
* Saves structured editor XXX form model need to be synchronized
*/
public void doSave(IProgressMonitor monitor) {
- new UIJob(Messages.MavenPomEditor_job_saving) {
- public IStatus runInUIThread(IProgressMonitor monitor) {
- resourceChangeEventSkip = true;
- try {
- sourcePage.doSave(monitor);
- } finally {
- resourceChangeEventSkip = false;
- }
- return Status.OK_STATUS;
- }
- }.schedule();
+ resourceChangeEventSkip = true;
+ try {
+ sourcePage.doSave(monitor);
+ } finally {
+ resourceChangeEventSkip = false;
+ }
}
public void doSaveAs() {

Back to the top