[214409] Open anonymous type from WSDL editor shows schema
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/utils/OpenOnSelectionHelper.java b/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/utils/OpenOnSelectionHelper.java
index b898d5a..be1aa78 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/utils/OpenOnSelectionHelper.java
+++ b/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/utils/OpenOnSelectionHelper.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2001, 2007 IBM Corporation and others.
+ * Copyright (c) 2001, 2008 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -165,6 +165,19 @@
     {
       name = ((XSDNamedComponent) comp).getName();
     }
+    if (name == null)
+    {
+      // For Anonymous types, just show the element
+      if (comp instanceof XSDTypeDefinition)
+      {
+        XSDTypeDefinition type = (XSDTypeDefinition) comp;
+        comp = type.getContainer();
+        if (comp instanceof XSDNamedComponent)
+        {
+          name = ((XSDNamedComponent) comp).getName();
+        }
+      }
+    }
     
     if (schema == null || name == null)
     {