use of org.csstudio.apputil.ui.time.StartEndDialog in project org.csstudio.display.builder by kasemir.
the class StartEndTimeAction method run.
/**
* Prompt user for new start/end time
* @param shell Parent shell
* @param model Model to change
* @param operations_manager Undo/Redo operations manager
*/
public static void run(final Shell shell, final Model model, final UndoableActionManager operations_manager) {
final String start_time = model.getStartSpecification();
final String end_time = model.getEndSpecification();
final StartEndDialog dlg = new StartEndDialog(shell, start_time, end_time);
if (dlg.open() != Window.OK)
return;
new ChangeTimerangeCommand(model, operations_manager, dlg.isEndNow(), dlg.getStartSpecification(), dlg.getEndSpecification());
}
use of org.csstudio.apputil.ui.time.StartEndDialog in project org.csstudio.display.builder by kasemir.
the class ExportView method promptForTimerange.
/**
* Run start/end time dialog
*/
protected void promptForTimerange() {
final String start_time = start.getText();
final String end_time = end.getText();
final StartEndDialog dlg = new StartEndDialog(start.getShell(), start_time, end_time);
if (dlg.open() != Window.OK)
return;
start.setText(dlg.getStartSpecification());
end.setText(dlg.getEndSpecification());
}
Aggregations