diff options
author | gindik | 2010-02-17 19:46:45 +0000 |
---|---|---|
committer | gindik | 2010-02-17 19:46:45 +0000 |
commit | 3e3d9c4f55212fbec04cc90f4c1da6d63a54aebc (patch) | |
tree | ef42b2fb40ff8781a8a2279197711adb8b6712df /bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst | |
parent | 492431713f62f3cdda4ffc3ee7c2eda4758ba40e (diff) | |
download | webtools.sourceediting-3e3d9c4f55212fbec04cc90f4c1da6d63a54aebc.tar.gz webtools.sourceediting-3e3d9c4f55212fbec04cc90f4c1da6d63a54aebc.tar.xz webtools.sourceediting-3e3d9c4f55212fbec04cc90f4c1da6d63a54aebc.zip |
[302982] Make 'Attribute' category be consistent with the Element and Group Category
Diffstat (limited to 'bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst')
-rw-r--r-- | bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/adapters/XSDSchemaAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/adapters/XSDSchemaAdapter.java b/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/adapters/XSDSchemaAdapter.java index d6f82bf0d2..fe30e58473 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/adapters/XSDSchemaAdapter.java +++ b/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/adapters/XSDSchemaAdapter.java @@ -432,7 +432,7 @@ public class XSDSchemaAdapter extends XSDBaseAdapter implements IActionProvider, { if (!(attr.getTargetNamespace().equals(XSDConstants.SCHEMA_INSTANCE_URI_2001))) { - if (isSameNamespace(attr.getTargetNamespace(), xsdSchema.getTargetNamespace()) && (attr.getRootContainer() == xsdSchema || showFromIncludes)) + if (shouldShowComponent(attr, xsdSchema,showFromIncludes)) { attributesList.add(attr); } @@ -440,7 +440,7 @@ public class XSDSchemaAdapter extends XSDBaseAdapter implements IActionProvider, } else { - if (isSameNamespace(attr.getTargetNamespace(), xsdSchema.getTargetNamespace()) && (attr.getRootContainer() == xsdSchema || showFromIncludes)) + if (shouldShowComponent(attr, xsdSchema,showFromIncludes)) { attributesList.add(attr); } |