Search in sources :

Example 16 with MobileBuilder

use of com.twinsoft.convertigo.engine.mobile.MobileBuilder in project convertigo by convertigo.

the class MobileComponent method getTplVersion.

protected String getTplVersion() {
    Project p = getProject();
    MobileBuilder mb = p == null ? null : p.getMobileBuilder();
    String version = mb == null ? null : mb.getTplVersion();
    if (p == null) {
        String message = "(MobileComponent.getTplVersion()) project is null for component " + getName() + (Engine.isStudioMode() ? " (probably removed component)" : "");
        if (Engine.isStudioMode()) {
            Engine.logBeans.trace(message);
        } else {
            Engine.logBeans.warn(message);
        }
    } else {
        if (mb == null) {
            Engine.logBeans.warn("(MobileComponent.getTplVersion()) MB is null for component " + getQName());
        } else if (version == null) {
            Engine.logBeans.warn("(MobileComponent.getTplVersion()) Tpl version is null for component " + getQName() + " (MB probably not intialized)");
        }
    }
    return version;
}
Also used : Project(com.twinsoft.convertigo.beans.core.Project) MobileBuilder(com.twinsoft.convertigo.engine.mobile.MobileBuilder)

Aggregations

MobileBuilder (com.twinsoft.convertigo.engine.mobile.MobileBuilder)16 IEditorInput (org.eclipse.ui.IEditorInput)10 IEditorPart (org.eclipse.ui.IEditorPart)8 DatabaseObject (com.twinsoft.convertigo.beans.core.DatabaseObject)7 CoreException (org.eclipse.core.runtime.CoreException)7 Text (org.eclipse.swt.widgets.Text)7 Project (com.twinsoft.convertigo.beans.core.Project)6 ProjectExplorerView (com.twinsoft.convertigo.eclipse.views.projectexplorer.ProjectExplorerView)6 File (java.io.File)6 Matcher (java.util.regex.Matcher)6 JSONArray (org.codehaus.jettison.json.JSONArray)6 JSONException (org.codehaus.jettison.json.JSONException)6 Point (org.eclipse.swt.graphics.Point)6 Rectangle (org.eclipse.swt.graphics.Rectangle)6 Composite (org.eclipse.swt.widgets.Composite)6 Control (org.eclipse.swt.widgets.Control)6 MobileDebugView (com.twinsoft.convertigo.eclipse.views.mobile.MobileDebugView)5 DatabaseObjectFoundException (com.twinsoft.convertigo.engine.DatabaseObjectFoundException)5 MessageDialog (org.eclipse.jface.dialogs.MessageDialog)5 ScrolledComposite (org.eclipse.swt.custom.ScrolledComposite)5