diff options
Diffstat (limited to 'bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/editparts/model/FocusTypeColumn.java')
-rw-r--r-- | bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/editparts/model/FocusTypeColumn.java | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/editparts/model/FocusTypeColumn.java b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/editparts/model/FocusTypeColumn.java deleted file mode 100644 index 60a6fc19c2..0000000000 --- a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/editparts/model/FocusTypeColumn.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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 - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.wst.xsd.ui.internal.adt.facade.IADTObject; -import org.eclipse.wst.xsd.ui.internal.adt.facade.IField; -import org.eclipse.wst.xsd.ui.internal.adt.facade.IStructure; -import org.eclipse.wst.xsd.ui.internal.adt.facade.IType; - -public class FocusTypeColumn extends AbstractModelCollection -{ - protected boolean isFocusObject = false; - - public FocusTypeColumn(IADTObject model) - { - super(model, "FocusTypeColumn"); //$NON-NLS-1$ - } - - public FocusTypeColumn(IADTObject model, boolean isFocusObject) - { - super(model, "FocusTypeColumn"); //$NON-NLS-1$ - this.isFocusObject = isFocusObject; - } - - public List getChildren() - { - List result = new ArrayList(); - if (model instanceof IType) - { - IType type = (IType)model; - if (type.getSuperType() != null) - { - result.add(type.getSuperType()); - } - result.add(type); - } - else if (model instanceof IField || - model instanceof IStructure) - { - result.add(model); - } - return result; - } - - public boolean isFocusObject() - { - return isFocusObject; - } -} |