Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-01-07 09:18:04 +0000
committerMilos Kleint2011-01-07 09:21:14 +0000
commitc01e3f9ed60eeeb59800ced7b4ef53716031fdc7 (patch)
treeae51925eac04dc5dccf421319ed7a5db6e639bf8 /org.eclipse.m2e.editor
parent16a4264eb5a709c919e903e782422e9a923977ac (diff)
downloadm2e-core-c01e3f9ed60eeeb59800ced7b4ef53716031fdc7.tar.gz
m2e-core-c01e3f9ed60eeeb59800ced7b4ef53716031fdc7.tar.xz
m2e-core-c01e3f9ed60eeeb59800ced7b4ef53716031fdc7.zip
MNGECLIPSE-2080 need to update ui when root element is removed/readded
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/PluginsComposite.java6
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ReportingComposite.java4
2 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/PluginsComposite.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/PluginsComposite.java
index 07c06b66..9c824736 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/PluginsComposite.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/PluginsComposite.java
@@ -1101,6 +1101,12 @@ public class PluginsComposite extends Composite{
Object feature = notification.getFeature();
Object notificationObject = MavenPomEditorPage.getFromNotification(notification);
+
+ if (feature == PomPackage.Literals.MODEL__BUILD) { //MNGECLIPSE-2080
+ loadPlugins();
+ loadPluginManagement();
+ }
+
if(feature == PomPackage.Literals.BUILD_BASE__PLUGINS || feature == PomPackage.Literals.PLUGIN_MANAGEMENT__PLUGINS) {
pluginsEditor.refresh();
pluginManagementEditor.refresh();
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ReportingComposite.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ReportingComposite.java
index 0692ddfd..82a00e19 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ReportingComposite.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ReportingComposite.java
@@ -760,6 +760,10 @@ public class ReportingComposite extends Composite {
EObject object = (EObject) notification.getNotifier();
Object feature = notification.getFeature();
+ if (feature == PomPackage.Literals.MODEL__REPORTING) {
+ updateContent(reportingProvider.getValue());
+ }
+
if(object instanceof Reporting || feature == PomPackage.Literals.REPORTING__PLUGINS) {
reportPluginsEditor.refresh();
} else if(object instanceof ReportPlugin) {

Back to the top