예제 #1
0
 @Override
 public void reconcile(final ErlDirtyRegion r) {
   if (fModule != null) {
     ErlLogger.debug("## reconcile " + fModule.getName());
     fModule.reconcileText(r.getOffset(), r.getLength(), r.getText(), mon);
   }
 }
예제 #2
0
 @Override
 public void initialReconcile() {
   fModule = fEditor != null ? fEditor.getModule() : null;
   ErlLogger.debug("## initial reconcile " + (fModule != null ? fModule.getName() : ""));
   if (fModule != null) {
     fModule.initialReconcile();
   }
   // notify(new OtpErlangAtom("initialReconcile"));
 }
예제 #3
0
 @Override
 public void inputChanged(final Viewer v, final Object oldInput, final Object newInput) {
   if (newInput instanceof IErlModule[]) {
     // TreeObject to1 = new TreeObject("Leaf 1");
     final IErlModule[] x = (IErlModule[]) newInput;
     invisibleRoot = new TreeParent("");
     for (final IErlModule module : x) {
       invisibleRoot.addChild(new TreeObject(module.getName()));
     }
   }
 }
예제 #4
0
 private List<String> getProjectAndModuleNames(final Collection<IErlProject> projects)
     throws ErlModelException {
   final List<String> moduleNames = Lists.newArrayList();
   for (final IErlProject project : projects) {
     final Collection<IErlModule> modules = project.getModules();
     final String projectNameColon = project.getName() + ":";
     for (final IErlModule module : modules) {
       moduleNames.add(projectNameColon + module.getName());
     }
   }
   return moduleNames;
 }