//if toggling lots of lines then use progress monitor else just run the operation
if((selectionEndLine - selectionStartLine) > TOGGLE_LINES_MAX_NO_BUSY_INDICATOR && display != null) {
ProgressMonitorDialog dialog = new ProgressMonitorDialog(display.getActiveShell());
dialog.run(false, true, toggleCommentsRunnable);
} else {
toggleCommentsRunnable.run(new NullProgressMonitor());
}
}
} catch (InvocationTargetException e) {
Logger.logException("Problem running toggle comment progess dialog.", e); //$NON-NLS-1$
} catch (InterruptedException e) {