use of com.twinsoft.convertigo.beans.transactions.AbstractHttpTransaction in project convertigo by convertigo.
the class HttpTransactionAddVariables method run.
@Override
public void run() {
Display display = Display.getDefault();
Cursor waitCursor = new Cursor(display, SWT.CURSOR_WAIT);
Shell shell = getParentShell();
shell.setCursor(waitCursor);
try {
TreeObject parentTreeObject = null;
AbstractHttpTransaction databaseObject = null;
ProjectExplorerView explorerView = getProjectExplorerView();
if (explorerView != null) {
parentTreeObject = explorerView.getFirstSelectedTreeObject();
if (parentTreeObject.getObject() instanceof AbstractHttpTransaction) {
databaseObject = (AbstractHttpTransaction) parentTreeObject.getObject();
HttpTransactionVariablesDialog couchVariablesDialog = new HttpTransactionVariablesDialog(shell, databaseObject);
couchVariablesDialog.open();
explorerView.reloadTreeObject(parentTreeObject);
}
}
} catch (Throwable e) {
ConvertigoPlugin.logException(e, "Unable to create a new database object '" + databaseObjectClassName + "'!");
} finally {
shell.setCursor(null);
waitCursor.dispose();
}
}
Aggregations