use of com.twinsoft.convertigo.eclipse.dialogs.StatisticsDialog in project convertigo by convertigo.
the class CustomStatisticsAction method run.
public void run() {
Display display = Display.getDefault();
Cursor waitCursor = new Cursor(display, SWT.CURSOR_WAIT);
Shell shell = getParentShell();
shell.setCursor(waitCursor);
try {
ProjectExplorerView explorerView = getProjectExplorerView();
if (explorerView != null) {
ProjectTreeObject projectTreeObject = (ProjectTreeObject) explorerView.getFirstSelectedTreeObject();
if (projectTreeObject != null) {
StatisticsDialog stats = new StatisticsDialog(shell, projectTreeObject.getName(), projectTreeObject.getObject().getComment(), projectTreeObject.getObject().getVersion());
stats.open();
}
}
} catch (Throwable e) {
ConvertigoPlugin.logException(e, "Unable to compute statistics!");
} finally {
shell.setCursor(null);
waitCursor.dispose();
}
}
Aggregations