use of org.eclipse.wst.xsd.ui.internal.adt.facade.IComplexType in project webtools.sourceediting by eclipse.
the class RootContentEditPart method getSelectedComplexType.
public IComplexType getSelectedComplexType() {
IComplexType result = null;
IModel model = (IModel) getModel();
List types = model.getTypes();
if (types.size() > 0) {
if (types.get(0) instanceof IComplexType)
result = (IComplexType) types.get(0);
}
return result;
}
Aggregations