summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-27 11:41:35 (EDT)
committerEike Stepper2007-09-27 11:41:35 (EDT)
commitb1bfb884be36dc7bcc4853c0b4a5707948f1d0b3 (patch)
tree15a9db4881715e9871ff8d452e0f794929a07e4c
parent80d6d7a9f51582c3e25497f26e66a3ae9f985763 (diff)
downloadcdo-b1bfb884be36dc7bcc4853c0b4a5707948f1d0b3.zip
cdo-b1bfb884be36dc7bcc4853c0b4a5707948f1d0b3.tar.gz
cdo-b1bfb884be36dc7bcc4853c0b4a5707948f1d0b3.tar.bz2
[204820] Deletion of objects doesn't update local editor
https://bugs.eclipse.org/bugs/show_bug.cgi?id=204820
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java
index 9d56906..ac63559 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java
@@ -126,6 +126,7 @@ import org.eclipse.ui.views.properties.PropertySheetPage;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.EventObject;
@@ -1884,11 +1885,15 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
private boolean populateManager(MenuManager menuManager)
{
boolean populated = false;
- CDOPackage[] cdoPackages = view.getSession().getPackageManager().getPackages();
+ List<CDOPackage> cdoPackages = Arrays.asList(view.getSession().getPackageManager().getPackages());
+ Collections.sort(cdoPackages);
+
for (CDOPackage cdoPackage : cdoPackages)
{
- CDOClass[] cdoClasses = cdoPackage.getConcreteClasses();
- if (cdoClasses.length != 0)
+ List<CDOClass> cdoClasses = Arrays.asList(cdoPackage.getConcreteClasses());
+ Collections.sort(cdoClasses);
+
+ if (!cdoClasses.isEmpty())
{
MenuManager submenuManager = new MenuManager(cdoPackage.getPackageURI());
for (CDOClass cdoClass : cdoClasses)