Пример #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;
 }
Пример #5
0
 @Override
 public void chunkReconciled() {
   if (fModule != null) {
     fModule.postReconcile(mon);
   }
 }
Пример #6
0
 @Override
 public void uninstall() {
   if (fModule != null) {
     fModule.finalReconcile();
   }
 }