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;
}
Aggregations