Search in sources :

Example 21 with ObjectsFolderTreeObject

use of com.twinsoft.convertigo.eclipse.views.projectexplorer.model.ObjectsFolderTreeObject in project convertigo by convertigo.

the class ViewContentProvider method getUnloadedProjects.

private void getUnloadedProjects(boolean bRefresh) {
    try {
        if (!Engine.isStarted)
            return;
        synchronized (this) {
            if (invisibleRoot == null) {
                invisibleRoot = new ObjectsFolderTreeObject(projectExplorerView.viewer, ObjectsFolderTreeObject.FOLDER_TYPE_INVISIBLE_ROOT);
                bRefresh = true;
            }
            if (bRefresh) {
                for (String projectName : Engine.theApp.databaseObjectsManager.getAllProjectNamesList(false)) {
                    if (MigrationManager.isProjectMigrated(projectName)) {
                        ConvertigoPlugin.logDebug("[ViewContentProvider] getUnloadedProjects : do load project " + projectName);
                        loadProjectRootObject(projectName);
                    } else {
                        ConvertigoPlugin.logDebug("[ViewContentProvider] getUnloadedProjects : do not load migrating project " + projectName);
                    }
                }
            }
        }
    } catch (Exception e) {
        String message = "Error while initializing the project explorer (view content provider)";
        ConvertigoPlugin.logException(e, message);
    }
}
Also used : ObjectsFolderTreeObject(com.twinsoft.convertigo.eclipse.views.projectexplorer.model.ObjectsFolderTreeObject) CoreException(org.eclipse.core.runtime.CoreException) EngineException(com.twinsoft.convertigo.engine.EngineException)

Aggregations

ObjectsFolderTreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.ObjectsFolderTreeObject)21 TreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.TreeObject)19 DatabaseObject (com.twinsoft.convertigo.beans.core.DatabaseObject)18 DatabaseObjectTreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.DatabaseObjectTreeObject)14 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)12 ActionModel (com.twinsoft.convertigo.engine.studio.ActionModel)11 EngineException (com.twinsoft.convertigo.engine.EngineException)5 IOException (java.io.IOException)5 Shell (org.eclipse.swt.widgets.Shell)5 ProjectExplorerView (com.twinsoft.convertigo.eclipse.views.projectexplorer.ProjectExplorerView)4 PropertyTableRowTreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.PropertyTableRowTreeObject)4 WizardDialog (org.eclipse.jface.wizard.WizardDialog)4 Cursor (org.eclipse.swt.graphics.Cursor)4 Display (org.eclipse.swt.widgets.Display)4 TreeParent (com.twinsoft.convertigo.eclipse.views.projectexplorer.TreeParent)3 IPropertyTreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.IPropertyTreeObject)3 MobileUIComponentTreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.MobileUIComponentTreeObject)3 NgxComponentTreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.NgxComponentTreeObject)3 NgxUIComponentTreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.NgxUIComponentTreeObject)3 PropertyTableTreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.PropertyTableTreeObject)3