use of com.twinsoft.convertigo.eclipse.views.projectexplorer.model.MobileComponentTreeObject in project convertigo by convertigo.
the class ExecuteMobileBuilderClassAction 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) {
TreeObject treeObject = explorerView.getFirstSelectedTreeObject();
if (treeObject instanceof MobileComponentTreeObject) {
if (treeObject instanceof MobileApplicationComponentTreeObject) {
MobileApplicationComponentTreeObject mpcto = (MobileApplicationComponentTreeObject) treeObject;
com.twinsoft.convertigo.eclipse.editors.mobile.ApplicationComponentEditor editor = mpcto.activeEditor(false);
editor.launchBuilder(forceInstall, forceClean);
}
} else if (treeObject instanceof NgxComponentTreeObject) {
if (treeObject instanceof NgxApplicationComponentTreeObject) {
NgxApplicationComponentTreeObject mpcto = (NgxApplicationComponentTreeObject) treeObject;
com.twinsoft.convertigo.eclipse.editors.ngx.ApplicationComponentEditor editor = mpcto.activeEditor(false);
editor.launchBuilder(forceInstall, forceClean);
}
}
}
} catch (Throwable e) {
ConvertigoPlugin.logException(e, "Unable to open the mobile builder!");
} finally {
shell.setCursor(null);
waitCursor.dispose();
}
}
Aggregations