Search in sources :

Example 1 with ReferencedTypeColumn

use of org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model.ReferencedTypeColumn in project webtools.sourceediting by eclipse.

the class ColumnEditPart method refreshChildren.

protected void refreshChildren() {
    super.refreshChildren();
    if (getModel() instanceof ReferencedTypeColumn) {
        if (getParent().getChildren().size() > 0) {
            EditPart editPart = (EditPart) getParent().getChildren().get(0);
            refreshConnections(editPart);
        }
    } else {
        refreshConnections(this);
    }
}
Also used : ReferencedTypeColumn(org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model.ReferencedTypeColumn) EditPart(org.eclipse.gef.EditPart)

Example 2 with ReferencedTypeColumn

use of org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model.ReferencedTypeColumn in project webtools.sourceediting by eclipse.

the class RootHolderEditPart method getModelChildren.

protected List getModelChildren() {
    List collections = new ArrayList();
    RootHolder holder = (RootHolder) getModel();
    IADTObject focusObject = holder.getModel();
    collections.add(new FocusTypeColumn(focusObject));
    collections.add(new ReferencedTypeColumn(focusObject));
    return collections;
}
Also used : IADTObject(org.eclipse.wst.xsd.ui.internal.adt.facade.IADTObject) ReferencedTypeColumn(org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model.ReferencedTypeColumn) ArrayList(java.util.ArrayList) FocusTypeColumn(org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model.FocusTypeColumn) List(java.util.List) ArrayList(java.util.ArrayList) RootHolder(org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model.RootHolder)

Aggregations

ReferencedTypeColumn (org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model.ReferencedTypeColumn)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 EditPart (org.eclipse.gef.EditPart)1 FocusTypeColumn (org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model.FocusTypeColumn)1 RootHolder (org.eclipse.wst.xsd.ui.internal.adt.design.editparts.model.RootHolder)1 IADTObject (org.eclipse.wst.xsd.ui.internal.adt.facade.IADTObject)1