@Override public void reconcile(final ErlDirtyRegion r) { if (fModule != null) { ErlLogger.debug("## reconcile " + fModule.getName()); fModule.reconcileText(r.getOffset(), r.getLength(), r.getText(), mon); } }
@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")); }
@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())); } } }
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; }
@Override public void chunkReconciled() { if (fModule != null) { fModule.postReconcile(mon); } }
@Override public void uninstall() { if (fModule != null) { fModule.finalReconcile(); } }