Search in sources :

Example 21 with IApplicationComponent

use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.

the class Ionic3Builder method appCompTsChanged.

@Override
public void appCompTsChanged(final IApplicationComponent appComponent) throws EngineException {
    ApplicationComponent app = (ApplicationComponent) appComponent;
    if (app != null && initDone) {
        synchronized (app) {
            writeAppComponentTs(app);
            moveFiles();
            Engine.logEngine.trace("(MobileBuilder) Handled 'appCompTsChanged'");
        }
    }
}
Also used : IApplicationComponent(com.twinsoft.convertigo.beans.core.IApplicationComponent) ApplicationComponent(com.twinsoft.convertigo.beans.mobile.components.ApplicationComponent)

Example 22 with IApplicationComponent

use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.

the class Ionic3Builder method getTempTsRelativePath.

@Override
public String getTempTsRelativePath(IApplicationComponent appComponent) throws EngineException {
    ApplicationComponent app = (ApplicationComponent) appComponent;
    try {
        if (app != null) {
            File appComponentTsFile = new File(ionicWorkDir, "src/app/app.component.temp.ts");
            String filePath = appComponentTsFile.getPath().replace(projectDir.getPath(), File.separator);
            return filePath;
        }
    } catch (Exception e) {
    }
    return null;
}
Also used : IApplicationComponent(com.twinsoft.convertigo.beans.core.IApplicationComponent) ApplicationComponent(com.twinsoft.convertigo.beans.mobile.components.ApplicationComponent) File(java.io.File) IOException(java.io.IOException) EngineException(com.twinsoft.convertigo.engine.EngineException)

Example 23 with IApplicationComponent

use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.

the class Ionic3Builder method appTsChanged.

@Override
public void appTsChanged(final IApplicationComponent appComponent, boolean forceTemp) throws EngineException {
    ApplicationComponent app = (ApplicationComponent) appComponent;
    if (app != null && initDone) {
        synchronized (app) {
            writeAppComponentTs(app);
            moveFiles();
            File tempTsFile = new File(ionicWorkDir, "src/app/app.component.temp.ts");
            if (forceTemp && tempTsFile.exists()) {
                writeAppComponentTempTs(app);
            }
            Engine.logEngine.trace("(MobileBuilder) Handled 'appTsChanged'");
        }
    }
}
Also used : IApplicationComponent(com.twinsoft.convertigo.beans.core.IApplicationComponent) ApplicationComponent(com.twinsoft.convertigo.beans.mobile.components.ApplicationComponent) File(java.io.File)

Example 24 with IApplicationComponent

use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.

the class Ionic3Builder method appPwaChanged.

@Override
public void appPwaChanged(final IApplicationComponent appComponent) throws EngineException {
    ApplicationComponent app = (ApplicationComponent) appComponent;
    if (app != null && initDone) {
        synchronized (app) {
            // for worker
            configurePwaApp(app);
            // for prod mode
            writeAppComponentTs(app);
            // for worker
            writeAppModuleTs(app);
            moveFiles();
            Engine.logEngine.trace("(MobileBuilder) Handled 'appPwaChanged'");
        }
    }
}
Also used : IApplicationComponent(com.twinsoft.convertigo.beans.core.IApplicationComponent) ApplicationComponent(com.twinsoft.convertigo.beans.mobile.components.ApplicationComponent)

Example 25 with IApplicationComponent

use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.

the class Ionic3Builder method appThemeChanged.

@Override
public void appThemeChanged(final IApplicationComponent appComponent) throws EngineException {
    ApplicationComponent app = (ApplicationComponent) appComponent;
    if (app != null && initDone) {
        synchronized (app) {
            writeAppTheme(app);
            moveFiles();
            Engine.logEngine.trace("(MobileBuilder) Handled 'appThemeChanged'");
        }
    }
}
Also used : IApplicationComponent(com.twinsoft.convertigo.beans.core.IApplicationComponent) ApplicationComponent(com.twinsoft.convertigo.beans.mobile.components.ApplicationComponent)

Aggregations

IApplicationComponent (com.twinsoft.convertigo.beans.core.IApplicationComponent)27 ApplicationComponent (com.twinsoft.convertigo.beans.mobile.components.ApplicationComponent)12 ApplicationComponent (com.twinsoft.convertigo.beans.ngx.components.ApplicationComponent)12 File (java.io.File)11 EngineException (com.twinsoft.convertigo.engine.EngineException)4 IOException (java.io.IOException)4 MobileApplication (com.twinsoft.convertigo.beans.core.MobileApplication)2 Composite (org.eclipse.swt.widgets.Composite)2 Connector (com.twinsoft.convertigo.beans.core.Connector)1 MobilePlatform (com.twinsoft.convertigo.beans.core.MobilePlatform)1 Project (com.twinsoft.convertigo.beans.core.Project)1 Sequence (com.twinsoft.convertigo.beans.core.Sequence)1 Transaction (com.twinsoft.convertigo.beans.core.Transaction)1 BuildLocallyEndingDialog (com.twinsoft.convertigo.eclipse.dialogs.BuildLocallyEndingDialog)1 MobileApplicationEndpointEditorComposite (com.twinsoft.convertigo.eclipse.property_editors.MobileApplicationEndpointEditorComposite)1 ProjectExplorerView (com.twinsoft.convertigo.eclipse.views.projectexplorer.ProjectExplorerView)1 ArchiveExportOption (com.twinsoft.convertigo.engine.enums.ArchiveExportOption)1 BuildLocally (com.twinsoft.convertigo.engine.localbuild.BuildLocally)1 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)1 Job (org.eclipse.core.runtime.jobs.Job)1