use of com.twinsoft.convertigo.beans.core.MobileApplication in project convertigo by convertigo.
the class LaunchMobileApplicationProjectAction 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 {
ProjectExplorerView explorerView = getProjectExplorerView();
if (explorerView != null) {
TreeObject treeObject = explorerView.getFirstSelectedTreeObject();
Object databaseObject = treeObject.getObject();
if ((databaseObject != null) && (databaseObject instanceof MobileApplication)) {
MobileApplication mobileApplication = (MobileApplication) databaseObject;
// Test plateform
Program.launch(EnginePropertiesManager.getProperty(PropertyName.APPLICATION_SERVER_CONVERTIGO_URL) + "/project.html#" + mobileApplication.getProject() + "?launch=webapp");
}
}
} catch (Throwable e) {
ConvertigoPlugin.logException(e, "Unable to launch the mobile device selected project!");
} finally {
shell.setCursor(null);
waitCursor.dispose();
}
}
Aggregations