Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2012-08-16 20:32:20 -0400
committerIgor Fedorenko2012-08-16 20:37:43 -0400
commit9b0d5c3ca4e183e61b93536f7995d79786f58fe5 (patch)
tree34db8a6ebdb6e6db3c69e58bacd435ab94279fcb /org.eclipse.m2e.editor.xml
parent906816d7b67282625ea60e21a7313fb9d2c519a6 (diff)
downloadm2e-core-9b0d5c3ca4e183e61b93536f7995d79786f58fe5.tar.gz
m2e-core-9b0d5c3ca4e183e61b93536f7995d79786f58fe5.tar.xz
m2e-core-9b0d5c3ca4e183e61b93536f7995d79786f58fe5.zip
350414 more workspce lifecycle mapping fixes and tweaks
In no particular order * cache workspace lifecycle mapping metadata for faster mapping * read-modify-write to minimize chance of loosing on-disk mapping * Reload metadata preference button * Mapping metadata file location is configurable again * Mapping file location is not validated but missing file is gracefully tolerated everywhere Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.editor.xml')
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java
index 2ec6deb6..6b8a1d67 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java
@@ -44,7 +44,8 @@ public class WorkspaceLifecycleMappingProposal extends AbstractLifecycleMappingP
@Override
public void run(IMarker[] markers, IProgressMonitor monitor) {
- LifecycleMappingMetadataSource mapping = LifecycleMappingFactory.getWorkspaceMetadata();
+ // force reload from disk in case mapping file was modified by external process
+ LifecycleMappingMetadataSource mapping = LifecycleMappingFactory.getWorkspaceMetadata(true);
for(IMarker marker : markers) {
addMapping(mapping, marker);
}

Back to the top