The final restructured version for automatic build using maven tycho
[Mograsim.git] / net.mograsim.plugin.core / src / net / mograsim / plugin / asm / editor / AsmReconciler.java
diff --git a/net.mograsim.plugin.core/src/net/mograsim/plugin/asm/editor/AsmReconciler.java b/net.mograsim.plugin.core/src/net/mograsim/plugin/asm/editor/AsmReconciler.java
deleted file mode 100644 (file)
index efee8a3..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-package net.mograsim.plugin.asm.editor;
-
-import java.lang.ref.WeakReference;
-
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.ITextViewer;
-import org.eclipse.jface.text.reconciler.Reconciler;
-import org.eclipse.jface.text.source.projection.ProjectionViewer;
-
-import net.mograsim.plugin.AsmOps;
-
-public class AsmReconciler extends Reconciler
-{
-
-       private AsmReconcilerStrategy fStrategy;
-
-       public AsmReconciler()
-       {
-               fStrategy = new AsmReconcilerStrategy();
-               this.setReconcilingStrategy(fStrategy, IDocument.DEFAULT_CONTENT_TYPE);
-       }
-
-       @Override
-       public void install(ITextViewer textViewer)
-       {
-               super.install(textViewer);
-               ProjectionViewer pViewer = (ProjectionViewer) textViewer;
-               fStrategy.setProjectionViewer(pViewer);
-               WeakReference<ITextViewer> tv = new WeakReference<>(textViewer);
-               AsmOps.addListener(ops ->
-               {
-                       System.out.println("refresh");
-                       if (tv.get() != null)
-                               tv.get().invalidateTextPresentation();
-               });
-       }
-}
\ No newline at end of file