[193619] XSD Editor: Design view input not updated when elements/attributes are selected in the source view
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/DesignViewGraphicalViewer.java b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/DesignViewGraphicalViewer.java
index efce846..753c105 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/DesignViewGraphicalViewer.java
+++ b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/DesignViewGraphicalViewer.java
@@ -98,10 +98,11 @@
         if (selectedObject instanceof IField) 
         {
           IField field = (IField)selectedObject;
-          if (!field.isGlobal() && getInput() instanceof IModel)
+          if (!field.isGlobal())
           {
-            if (field.getContainerType() != null)
-              setInput(field.getContainerType());
+            IADTObject obj = ((IGraphElement)selectedObject).getTopContainer();
+            if (obj != null)
+              setInput (obj);
           }
           else if (field.isGlobal() && !(getInput() instanceof IModel))
           {