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