public static void resolveMPE( MindProject currentProject, EList<MindRootSrc> allsrc, MindPathEntry mpe) { MindObject resolvedBy = mpe.getResolvedBy(); if (resolvedBy == null) return; switch (mpe.getEntryKind()) { case APPLI: break; case IMPORT_PACKAGE: MindPackage mpackage = (MindPackage) resolvedBy; addSourceOrLibrary(allsrc, mpackage.getRootsrc()); break; case LIBRARY: MindRootSrc rs = (MindRootSrc) resolvedBy; addSourceOrLibrary(allsrc, rs); break; case PROJECT: MindProject mp = (MindProject) resolvedBy; if (mp != currentProject) allsrc.addAll(mp.getAllsrc()); break; case SOURCE: rs = (MindRootSrc) resolvedBy; addSourceOrLibrary(allsrc, rs); break; default: break; } }
private void build(IProject project) { MindProject mp = MindIdeCore.get(project); if (mp == null) return; try { MindIdeBuilder.checkFile(project, mp.getAllFiles()); } catch (InvalidCommandLineException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ADLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (CompilerError e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (CoreException e) { // TODO Auto-generated catch block e.printStackTrace(); } }