Search in sources :

Example 1 with ComboModel

use of org.csstudio.opibuilder.widgets.model.ComboModel in project yamcs-studio by yamcs.

the class ComboEditPart method doCreateFigure.

/**
 * {@inheritDoc}
 */
@Override
protected IFigure doCreateFigure() {
    final ComboModel model = getWidgetModel();
    updatePropSheet(model.isItemsFromPV());
    ComboFigure comboFigure = new ComboFigure(this);
    combo = comboFigure.getSWTWidget();
    List<String> items = getWidgetModel().getItems();
    updateCombo(items);
    markAsControlPV(AbstractPVWidgetModel.PROP_PVNAME, AbstractPVWidgetModel.PROP_PVVALUE);
    return comboFigure;
}
Also used : ComboModel(org.csstudio.opibuilder.widgets.model.ComboModel) ComboFigure(org.csstudio.opibuilder.widgets.figures.ComboFigure)

Aggregations

ComboFigure (org.csstudio.opibuilder.widgets.figures.ComboFigure)1 ComboModel (org.csstudio.opibuilder.widgets.model.ComboModel)1