コード例 #1
0
ファイル: ControlPanelWindow.java プロジェクト: xored/rcptt
 private void displayExecutionFailure(final ExecutionStatus status) {
   if (ExecutionErrorDialog.showExecutionError(ControlPanelWindow.this.getShell(), status)) {
     selectTab(script);
     EclSourceViewer viewer = scriptPart.getViewer();
     int line = status.getLine();
     int length = status.getLength();
     int column = status.getColumn();
     IBlockTextSelection selection =
         new BlockTextSelection(
             viewer.getDocument(), line - 1, column - 1, line - 1, column + length - 1, 0);
     viewer.setSelection(selection, true);
   }
 }
コード例 #2
0
ファイル: ControlPanelWindow.java プロジェクト: xored/rcptt
 private static boolean showExecutionError(Shell parentShell, ExecutionStatus status) {
   ExecutionErrorDialog dialog = new ExecutionErrorDialog(parentShell, status);
   return dialog.open() == 0 && status.hasLocation();
 }