use of com.twinsoft.convertigo.beans.core.IPageComponent in project convertigo by convertigo.
the class NgxBuilder method pageModuleTsChanged.
@Override
public synchronized void pageModuleTsChanged(final IPageComponent pageComponent) throws EngineException {
PageComponent page = (PageComponent) pageComponent;
if (page != null && page.isEnabled() && initDone) {
writePageModuleTs(page);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'pageModuleTsChanged'");
}
}
use of com.twinsoft.convertigo.beans.core.IPageComponent in project convertigo by convertigo.
the class Ionic3Builder method pageRenamed.
@Override
public void pageRenamed(final IPageComponent pageComponent, final String oldName) throws EngineException {
PageComponent page = (PageComponent) pageComponent;
if (page != null && page.isEnabled() && initDone) {
synchronized (page) {
MobileApplication mobileApplication = project.getMobileApplication();
if (mobileApplication != null) {
ApplicationComponent application = (ApplicationComponent) mobileApplication.getApplicationComponent();
if (application != null) {
writePageSourceFiles(page);
writeAppSourceFiles(application);
deleteUselessDir(oldName);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'pageRenamed'");
}
}
}
}
}
use of com.twinsoft.convertigo.beans.core.IPageComponent in project convertigo by convertigo.
the class Ionic3Builder method getTempTsRelativePath.
@Override
public String getTempTsRelativePath(final IPageComponent pageComponent) throws EngineException {
PageComponent page = (PageComponent) pageComponent;
try {
if (page != null) {
String pageName = page.getName();
File pageDir = new File(ionicWorkDir, "src/pages/" + pageName);
File tempTsFile = new File(pageDir, pageName.toLowerCase() + ".temp.ts");
String filePath = tempTsFile.getPath().replace(projectDir.getPath(), File.separator);
return filePath;
}
} catch (Exception e) {
throw new EngineException("Unable to write page temp ts file", e);
}
return null;
}
use of com.twinsoft.convertigo.beans.core.IPageComponent in project convertigo by convertigo.
the class Ionic3Builder method pageDisabled.
@Override
public void pageDisabled(final IPageComponent pageComponent) throws EngineException {
PageComponent page = (PageComponent) pageComponent;
if (page != null && !page.isEnabled() && initDone) {
synchronized (page) {
MobileApplication mobileApplication = project.getMobileApplication();
if (mobileApplication != null) {
ApplicationComponent application = (ApplicationComponent) mobileApplication.getApplicationComponent();
if (application != null) {
writePageSourceFiles(page);
writeAppSourceFiles(application);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'pageDisabled'");
}
}
}
}
}
use of com.twinsoft.convertigo.beans.core.IPageComponent in project convertigo by convertigo.
the class Ionic3Builder method pageRemoved.
@Override
public void pageRemoved(final IPageComponent pageComponent) throws EngineException {
PageComponent page = (PageComponent) pageComponent;
if (page != null && page.isEnabled() && initDone) {
synchronized (page) {
MobileApplication mobileApplication = project.getMobileApplication();
if (mobileApplication != null) {
ApplicationComponent application = (ApplicationComponent) mobileApplication.getApplicationComponent();
if (application != null) {
writeAppSourceFiles(application);
deleteUselessDir(page.getName());
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'pageRemoved'");
}
}
}
}
}
Aggregations