use of org.eclipse.scanning.device.ui.device.MalcolmModelEditor in project gda-core by openGDA.
the class TimeSeriesScanView method createMalcolmModelEditor.
private MalcolmModelEditor createMalcolmModelEditor(Composite parent, String malcolmDeviceName) {
try {
final IRunnableDevice<?> malcolmDevice = getRunnableDeviceService().getRunnableDevice(malcolmDeviceName);
final IMalcolmModel malcolmModel = (IMalcolmModel) malcolmDevice.getModel();
final MalcolmModelEditor editor = new MalcolmModelEditor(getRunnableDeviceService(), malcolmModel);
editor.createEditorPart(parent);
return editor;
} catch (ScanningException e) {
logger.error("Could not get malcolm device: ", malcolmDeviceName, e);
return null;
}
}
Aggregations