use of org.csstudio.opibuilder.actions.ConfigureRuntimePropertiesAction in project yamcs-studio by yamcs.
the class OPIRunnerContextMenuProvider method addSettingPropertiesAction.
private void addSettingPropertiesAction(final IMenuManager menu) {
List<?> selectedEditParts = ((IStructuredSelection) getViewer().getSelection()).toList();
if (selectedEditParts.size() == 1) {
if (selectedEditParts.get(0) instanceof AbstractBaseEditPart) {
AbstractBaseEditPart editPart = (AbstractBaseEditPart) selectedEditParts.get(0);
AbstractWidgetModel widget = editPart.getWidgetModel();
if (widget.getRuntimePropertyList() != null) {
menu.add(new ConfigureRuntimePropertiesAction(getViewer().getControl().getShell(), widget));
}
}
}
}
Aggregations