Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkchong2007-09-14 16:00:40 +0000
committerkchong2007-09-14 16:00:40 +0000
commit584a83cffb123daffced270e3a328aed7b5fa3c2 (patch)
treefe4102d1353dff832721c9703cc4fd488e650b8e /bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd
parentb646c25682ebb94268e02374cc5d7b355d7c886a (diff)
downloadwebtools.sourceediting-584a83cffb123daffced270e3a328aed7b5fa3c2.tar.gz
webtools.sourceediting-584a83cffb123daffced270e3a328aed7b5fa3c2.tar.xz
webtools.sourceediting-584a83cffb123daffced270e3a328aed7b5fa3c2.zip
[148433] After deleting anonymous complex type, the design view should remain in the detailed view of the element
Diffstat (limited to 'bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd')
-rw-r--r--bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/actions/DeleteAction.java2
-rw-r--r--bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/facade/IType.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/actions/DeleteAction.java b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/actions/DeleteAction.java
index d654e323a7..af1d60ba15 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/actions/DeleteAction.java
+++ b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/actions/DeleteAction.java
@@ -46,7 +46,7 @@ public class DeleteAction extends BaseSelectionAction
{
command = ((IComplexType)selection).getDeleteCommand();
model = ((IComplexType)selection).getModel();
- doReselect = true;
+ doReselect = !((IComplexType)selection).isAnonymous();
}
else if (selection instanceof IField)
{
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/facade/IType.java b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/facade/IType.java
index cdc553a449..cfd1adc99e 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/facade/IType.java
+++ b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/facade/IType.java
@@ -18,6 +18,7 @@ public interface IType extends IADTObject
String getName();
String getQualifier();
boolean isComplexType();
+ boolean isAnonymous();
Command getUpdateNameCommand(String newName);
}

Back to the top