}
public void projectOpened (String project, String location, String id) {
UMTMain.this.setTitle(title + " [" + project + "]");
try {
pimviewer.closeView();
ProjectEditor current = projectmanager.getCurrentProject();
if (current != null)
transformationeditor.addPropertyGroupEditorLister(current);
String[] sources = current.getSources();
// File sourcefile = new File (location + System.getProperty("file.separator") + source);
// For now, only open the first file....
for (int i = 0; i < sources.length; i++) {
File sourcefile = new File(sources[i]);
doOpenAnyFile (sourcefile, false, "class");
}
// TODO: ADD RECENT PROJECT....
_workcontext.setState(WorkContext.STATE_OPENED_PROJECT);
} catch (Exception ex) {
output.addLine("" + ex.getMessage());
}
setMenuEnabled (project_menuitems, true);
setMenuEnabled (model_menuitems, true);
tab.setEnabledAt(PROJECT_TAB_INDEX, true);
ProjectEditor peditor = projectmanager.getCurrentProject();
if (peditor != null)
tab.setComponentAt(PROJECT_TAB_INDEX, peditor.getProjectViewer());
}