diff options
author | kchong | 2007-09-14 16:00:40 +0000 |
---|---|---|
committer | kchong | 2007-09-14 16:00:40 +0000 |
commit | 584a83cffb123daffced270e3a328aed7b5fa3c2 (patch) | |
tree | fe4102d1353dff832721c9703cc4fd488e650b8e /bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd | |
parent | b646c25682ebb94268e02374cc5d7b355d7c886a (diff) | |
download | webtools.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')
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); } |