use of org.eclipse.wst.xsd.ui.internal.adt.typeviz.design.layouts.RowLayout in project webtools.sourceediting by eclipse.
the class FieldFigure method editPartAttached.
public void editPartAttached(EditPart owner) {
StructureEditPart structureEditPart = null;
for (EditPart parent = owner.getParent(); parent != null; parent = parent.getParent()) {
if (parent instanceof StructureEditPart) {
structureEditPart = (StructureEditPart) parent;
break;
}
}
RowLayout rowLayout = (RowLayout) rowFigure.getLayoutManager();
IStructureFigure typeFigure = structureEditPart.getStructureFigure();
Assert.isTrue(typeFigure instanceof StructureFigure, "Expected object of type StructureFigure");
rowLayout.setColumnData(((StructureFigure) typeFigure).getColumnData());
}
use of org.eclipse.wst.xsd.ui.internal.adt.typeviz.design.layouts.RowLayout in project webtools.sourceediting by eclipse.
the class CompartmentFigure method editPartAttached.
public void editPartAttached(EditPart owner) {
StructureEditPart structureEditPart = null;
for (EditPart parent = owner.getParent(); parent != null; parent = parent.getParent()) {
if (parent instanceof StructureEditPart) {
structureEditPart = (StructureEditPart) parent;
break;
}
}
RowLayout rowLayout = (RowLayout) rowFigure.getLayoutManager();
IStructureFigure typeFigure = structureEditPart.getStructureFigure();
Assert.isTrue(typeFigure instanceof StructureFigure, "Expected object of type StructureFigure");
rowLayout.setColumnData(((StructureFigure) typeFigure).getColumnData());
}
Aggregations