Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgindik2010-02-17 19:46:45 +0000
committergindik2010-02-17 19:46:45 +0000
commit3e3d9c4f55212fbec04cc90f4c1da6d63a54aebc (patch)
treeef42b2fb40ff8781a8a2279197711adb8b6712df
parent492431713f62f3cdda4ffc3ee7c2eda4758ba40e (diff)
downloadwebtools.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
-rw-r--r--bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/adapters/XSDSchemaAdapter.java4
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);
}

Back to the top