summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjcheuoua2007-06-04 04:18:18 (EDT)
committer jcheuoua2007-06-04 04:18:18 (EDT)
commit613c2fd6cc0190811cbb16703b1e88af2a78ec42 (patch)
tree786cda61f66872491916d6f898b38f7108e784f4
parent7226bdd2264a7a36b672e978de6a0d9b1956f305 (diff)
downloadorg.eclipse.jet-613c2fd6cc0190811cbb16703b1e88af2a78ec42.zip
org.eclipse.jet-613c2fd6cc0190811cbb16703b1e88af2a78ec42.tar.gz
org.eclipse.jet-613c2fd6cc0190811cbb16703b1e88af2a78ec42.tar.bz2
Major refactorings to comply with new non-deprecated JET API + comply with legal requirements for file headersR0_8_0
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/compiler/templates/JET1JavaGenerator.java140
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/compiler/templates/JET2JavaGeneratorNew.java306
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETTextEditor.java1
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETReconcilingStrategy.java58
4 files changed, 40 insertions, 465 deletions
diff --git a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/compiler/templates/JET1JavaGenerator.java b/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/compiler/templates/JET1JavaGenerator.java
deleted file mode 100644
index 6afe243..0000000
--- a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/compiler/templates/JET1JavaGenerator.java
+++ /dev/null
@@ -1,140 +0,0 @@
-package org.eclipse.jet.internal.compiler.templates;
-
-import org.eclipse.jet.JET2Context;
-import org.eclipse.jet.JET2Template;
-import org.eclipse.jet.JET2Writer;
-import org.eclipse.jet.core.parser.ast.*;
-import org.eclipse.jet.internal.compiler.SafeJETASTVisitor;
-import java.util.Iterator;
-import org.eclipse.jet.internal.JavaUtil;
-
-public class JET1JavaGenerator implements JET2Template {
-
- public JET1JavaGenerator() {
- super();
- }
-
- private static final String NL = System.getProperties().getProperty("line.separator"); //$NON-NLS-1$
-
- public void generate(final JET2Context context, final JET2Writer __out) {
- JET2Writer out = __out;
-
- JETCompilationUnit cu = (JETCompilationUnit)context.getVariable("cu"); //$NON-NLS-1$
-
- out.write("package "); //$NON-NLS-1$
- out.write( cu.getOutputJavaPackage() );
- out.write(";"); //$NON-NLS-1$
- out.write(NL);
- out.write(NL);
- for(Iterator i=cu.getImports().iterator();i.hasNext();) {
- String importName = (String)i.next();
- out.write("import "); //$NON-NLS-1$
- out.write(importName);
- out.write(";"); //$NON-NLS-1$
- out.write(NL);
- }
- out.write(NL);
- out.write("public class "); //$NON-NLS-1$
- out.write( cu.getOutputJavaClassName() );
- out.write(NL);
- out.write("{"); //$NON-NLS-1$
- out.write(NL);
- cu.accept(new SafeJETASTVisitor(context,out) {
- public boolean visit(JavaDeclaration decl) {
-
- out.write("\t"); //$NON-NLS-1$
- out.write( decl.getJavaContent() );
- out.write(NL);
-
- return true;
- }
- });
-
- out.write(" protected static String nl;"); //$NON-NLS-1$
- out.write(NL);
- out.write(" public static synchronized "); //$NON-NLS-1$
- out.write( cu.getOutputJavaClassName() );
- out.write(" create(String lineSeparator)"); //$NON-NLS-1$
- out.write(NL);
- out.write(" {"); //$NON-NLS-1$
- out.write(NL);
- out.write(" nl = lineSeparator;"); //$NON-NLS-1$
- out.write(NL);
- out.write(" "); //$NON-NLS-1$
- out.write( cu.getOutputJavaClassName() );
- out.write(" result = new "); //$NON-NLS-1$
- out.write( cu.getOutputJavaClassName() );
- out.write("();"); //$NON-NLS-1$
- out.write(NL);
- out.write(" nl = null;"); //$NON-NLS-1$
- out.write(NL);
- out.write(" return result;"); //$NON-NLS-1$
- out.write(NL);
- out.write(" }"); //$NON-NLS-1$
- out.write(NL);
- out.write(NL);
- out.write(" protected final String NL = nl == null ? (System.getProperties().getProperty(\"line.separator\")) : nl; //$NON-NLS-1$"); //$NON-NLS-1$
- out.write(NL);
- cu.accept(new SafeJETASTVisitor(context,out) {
- private int textCount = 0;
- public boolean visit(TextElement text) {
- textCount++;
-
- out.write(" protected final String TEXT_"); //$NON-NLS-1$
- out.write(textCount);
- out.write(" = "); //$NON-NLS-1$
- out.write(JavaUtil.asJavaQuoteStringWithNLRemoved(text.getText()));
- out.write(";"); //$NON-NLS-1$
- out.write(JavaUtil.nlsCommentsForJavaQuoteStringWithNLRemoved(text.getText()));
- out.write(NL);
-
- return true;
- }
- });
-
- out.write(NL);
- out.write(" public String generate(Object argument)"); //$NON-NLS-1$
- out.write(NL);
- out.write(" {"); //$NON-NLS-1$
- out.write(NL);
- out.write(" final StringBuffer stringBuffer = new StringBuffer();"); //$NON-NLS-1$
- out.write(NL);
- cu.accept(new SafeJETASTVisitor(context,out) {
- private int textCount = 0;
- public boolean visit(TextElement text) {
- textCount++;
-
- out.write(" stringBuffer.append(TEXT_"); //$NON-NLS-1$
- out.write(textCount);
- out.write(");"); //$NON-NLS-1$
- out.write(NL);
-
- return true;
- }
- public boolean visit(JavaScriptlet scriptlet) {
-
- out.write(" "); //$NON-NLS-1$
- out.write( scriptlet.getJavaContent() );
- out.write(NL);
-
- return true;
- }
- public boolean visit(JavaExpression expr) {
-
- out.write(" stringBuffer.append("); //$NON-NLS-1$
- out.write( expr.getJavaContent() );
- out.write(");"); //$NON-NLS-1$
- out.write(NL);
-
- return true;
- }
- });
-
- out.write(" return stringBuffer.toString();"); //$NON-NLS-1$
- out.write(NL);
- out.write(" }"); //$NON-NLS-1$
- out.write(NL);
- out.write("}"); //$NON-NLS-1$
- out.write(NL);
- }
-}
diff --git a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/compiler/templates/JET2JavaGeneratorNew.java b/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/compiler/templates/JET2JavaGeneratorNew.java
deleted file mode 100644
index 5cd227c..0000000
--- a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/compiler/templates/JET2JavaGeneratorNew.java
+++ /dev/null
@@ -1,306 +0,0 @@
-package org.eclipse.jet.internal.compiler.templates;
-
-import org.eclipse.jet.JET2Context;
-import org.eclipse.jet.JET2Template;
-import org.eclipse.jet.JET2Writer;
-import org.eclipse.jet.core.parser.ast.*;
-import org.eclipse.jet.internal.compiler.V2CodeGenVisitor;
-import org.eclipse.jet.internal.compiler.HasNewlinesUtil;
-import org.eclipse.jet.internal.compiler.TagUsageVisitor;
-import org.eclipse.jet.taglib.TagLibraryReference;
-import java.util.Arrays;
-import java.util.Comparator;
-import java.util.Iterator;
-import org.eclipse.jet.internal.JavaUtil;
-
-public class JET2JavaGeneratorNew implements JET2Template {
-
- public JET2JavaGeneratorNew() {
- super();
- }
-
- private static final String NL = System.getProperties().getProperty("line.separator"); //$NON-NLS-1$
-
- public void generate(final JET2Context context, final JET2Writer __out) {
- JET2Writer out = __out;
-
- JETCompilationUnit cu = (JETCompilationUnit)context.getVariable("cu"); //$NON-NLS-1$
- TagUsageVisitor tuv = new TagUsageVisitor();
- cu.accept(tuv);
- TagLibraryReference[] tlrefs = tuv.getUsedTagLibraryReferences(cu);
- Arrays.sort(tlrefs, new Comparator() {
- public int compare(Object o1, Object o2) {
- return ((TagLibraryReference)o1).getTagLibraryId().compareTo(((TagLibraryReference)o2).getTagLibraryId());
- }
- });
- final String nlConstantName = "NL"; //$NON-NLS-1$
-
- out.write("package "); //$NON-NLS-1$
- out.write( cu.getOutputJavaPackage() );
- out.write(";"); //$NON-NLS-1$
- out.write(NL);
- out.write(NL);
- out.write("import org.eclipse.jet.JET2Context;"); //$NON-NLS-1$
- out.write(NL);
- out.write("import org.eclipse.jet.JET2Template;"); //$NON-NLS-1$
- out.write(NL);
- out.write("import org.eclipse.jet.JET2Writer;"); //$NON-NLS-1$
- out.write(NL);
- if(tuv.hasTags()) {
- out.write("import org.eclipse.jet.taglib.RuntimeTagElement;"); //$NON-NLS-1$
- out.write(NL);
- out.write("import org.eclipse.jet.taglib.TagInfo;"); //$NON-NLS-1$
- out.write(NL);
- }
- for(Iterator i=cu.getImports().iterator();i.hasNext();) {
- out.write("import "); //$NON-NLS-1$
- out.write( (String)i.next() );
- out.write(";"); //$NON-NLS-1$
- out.write(NL);
- }
- out.write(NL);
- out.write("public class "); //$NON-NLS-1$
- out.write( cu.getOutputJavaClassName() );
- out.write(" implements JET2Template {"); //$NON-NLS-1$
- out.write(NL);
- for(int i = 0; i < tlrefs.length; i++ ) {
- out.write(" private static final String _jetns_"); //$NON-NLS-1$
- out.write( tlrefs[i].getPrefix() );
- out.write(" = \""); //$NON-NLS-1$
- out.write( tlrefs[i].getTagLibraryId() );
- out.write("\"; //$NON-NLS-1$"); //$NON-NLS-1$
- out.write(NL);
- }
- out.write(NL);
- cu.accept(new V2CodeGenVisitor(context,out) {
- public boolean visit(JavaDeclaration decl) {
-
- out.write(" "); //$NON-NLS-1$
- out.write( decl.getJavaContent() );
- out.write(NL);
-
- return true;
- }
- });
-
- out.write(" public "); //$NON-NLS-1$
- out.write( cu.getOutputJavaClassName() );
- out.write("() {"); //$NON-NLS-1$
- out.write(NL);
- out.write(" super();"); //$NON-NLS-1$
- out.write(NL);
- out.write(" }"); //$NON-NLS-1$
- out.write(NL);
- if(HasNewlinesUtil.test(cu)) {
- out.write(NL);
- out.write(" private static final String "); //$NON-NLS-1$
- out.write(nlConstantName);
- out.write(" = System.getProperty(\"line.separator\"); //$NON-NLS-1$"); //$NON-NLS-1$
- out.write(NL);
- }
- if(tuv.hasTags()) {
- out.write(" "); //$NON-NLS-1$
- out.write(NL);
- cu.accept(new V2CodeGenVisitor(context,out, " ") { //$NON-NLS-1$
- public boolean visit(XMLBodyElement e) {
- doElementVisit(e);
- return true;
- }
- public boolean visit(XMLEmptyElement e) {
- doElementVisit(e);
- return true;
- }
- public void doElementVisit(XMLElement e) {
-
- out.write(" private static final TagInfo _td_"); //$NON-NLS-1$
- out.write( tagInfoVar(e) );
- out.write(" = new TagInfo(\""); //$NON-NLS-1$
- out.write(e.getName());
- out.write("\", //$NON-NLS-1$"); //$NON-NLS-1$
- out.write(NL);
- out.write(" "); //$NON-NLS-1$
- out.write( e.getLine() );
- out.write(", "); //$NON-NLS-1$
- out.write( e.getColumn() );
- out.write(","); //$NON-NLS-1$
- out.write(NL);
- out.write(" new String[] {"); //$NON-NLS-1$
- out.write(NL);
- for (Iterator i = e.getAttributes().keySet().iterator(); i.hasNext();) {
- out.write(" \""); //$NON-NLS-1$
- out.write( (String) i.next() );
- out.write("\", //$NON-NLS-1$"); //$NON-NLS-1$
- out.write(NL);
- }
- out.write(" },"); //$NON-NLS-1$
- out.write(NL);
- out.write(" new String[] {"); //$NON-NLS-1$
- out.write(NL);
- for (Iterator i = e.getAttributes().values().iterator(); i.hasNext();) {
- String attrValue = (String) i.next();
- out.write(" \""); //$NON-NLS-1$
- out.write( JavaUtil.escapeJavaString(attrValue.toCharArray()) );
- out.write("\", //$NON-NLS-1$"); //$NON-NLS-1$
- out.write(NL);
- }
- out.write(" } );"); //$NON-NLS-1$
- out.write(NL);
- }
- });
- }
- out.write(NL);
- out.write(" public void generate(final JET2Context context, final JET2Writer __out) {"); //$NON-NLS-1$
- out.write(NL);
- out.write(" JET2Writer out = __out;"); //$NON-NLS-1$
- out.write(NL);
- cu.accept(new V2CodeGenVisitor(context,out, " ") { //$NON-NLS-1$
- public boolean visit(TextElement text) {
- if(text.getText().length > 0) {
- String[] strings = textConstants(text, nlConstantName);
- for(int i = 0; i < strings.length; i++) {
-
- out.write(" out.write("); //$NON-NLS-1$
- out.write(strings[i]);
- out.write("); "); //$NON-NLS-1$
- if(strings[i].startsWith("\"")) { //$NON-NLS-1$
- out.write(" //$NON-NLS-1$"); //$NON-NLS-1$
- }
- out.write(" "); //$NON-NLS-1$
- out.write(NL);
-
- }
- }
- return true;
- }
- public boolean visit(JavaScriptlet scriptlet) {
-
- out.write(" "); //$NON-NLS-1$
- out.write( scriptlet.getJavaContent() );
- out.write(NL);
-
- return true;
- }
- public boolean visit(JavaExpression expr) {
-
- out.write(" out.write("); //$NON-NLS-1$
- out.write( expr.getJavaContent() );
- out.write(");"); //$NON-NLS-1$
- out.write(NL);
-
- return true;
- }
- public boolean visit(XMLBodyElement e) {
-
- out.write(" RuntimeTagElement "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(" = context.getTagFactory().createRuntimeTag(_jetns_"); //$NON-NLS-1$
- out.write( e.getNSPrefix() );
- out.write(", \""); //$NON-NLS-1$
- out.write( e.getTagNCName() );
- out.write("\", \""); //$NON-NLS-1$
- out.write( e.getName() );
- out.write("\", _td_"); //$NON-NLS-1$
- out.write( tagInfoVar(e) );
- out.write("); //$NON-NLS-1$ //$NON-NLS-2$"); //$NON-NLS-1$
- out.write(NL);
- out.write(" "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".setRuntimeParent("); //$NON-NLS-1$
- out.write( parentTagVar(e) );
- out.write(");"); //$NON-NLS-1$
- out.write(NL);
- out.write(" "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".setTagInfo(_td_"); //$NON-NLS-1$
- out.write( tagInfoVar(e) );
- out.write(");"); //$NON-NLS-1$
- out.write(NL);
- out.write(" "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".doStart(context, out);"); //$NON-NLS-1$
- out.write(NL);
- if(requiresOwnWriter(e)) {
- out.write(" JET2Writer "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write("_saved_out = out;"); //$NON-NLS-1$
- out.write(NL);
- }
- out.write(" while ("); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".okToProcessBody()) {"); //$NON-NLS-1$
- out.write(NL);
- if(requiresOwnWriter(e)) {
- out.write(" out = out.newNestedContentWriter();"); //$NON-NLS-1$
- out.write(NL);
- }
-
- in();
- return true;
- }
- public void endVisit(XMLBodyElement e) {
- out();
-
- out.write(" "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".handleBodyContent(out);"); //$NON-NLS-1$
- out.write(NL);
- out.write(" }"); //$NON-NLS-1$
- out.write(NL);
- if(requiresOwnWriter(e)) {
- out.write(" out = "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write("_saved_out;"); //$NON-NLS-1$
- out.write(NL);
- }
- out.write(" "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".doEnd();"); //$NON-NLS-1$
- out.write(NL);
-
-
- }
- public boolean visit(XMLEmptyElement e) {
-
- out.write(" RuntimeTagElement "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(" = context.getTagFactory().createRuntimeTag(_jetns_"); //$NON-NLS-1$
- out.write( e.getNSPrefix() );
- out.write(", \""); //$NON-NLS-1$
- out.write( e.getTagNCName() );
- out.write("\", \""); //$NON-NLS-1$
- out.write( e.getName() );
- out.write("\", _td_"); //$NON-NLS-1$
- out.write( tagInfoVar(e) );
- out.write("); //$NON-NLS-1$ //$NON-NLS-2$"); //$NON-NLS-1$
- out.write(NL);
- out.write(" "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".setRuntimeParent("); //$NON-NLS-1$
- out.write( parentTagVar(e) );
- out.write(");"); //$NON-NLS-1$
- out.write(NL);
- out.write(" "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".setTagInfo(_td_"); //$NON-NLS-1$
- out.write( tagInfoVar(e) );
- out.write(");"); //$NON-NLS-1$
- out.write(NL);
- out.write(" "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".doStart(context, out);"); //$NON-NLS-1$
- out.write(NL);
- out.write(" "); //$NON-NLS-1$
- out.write( tagVar(e) );
- out.write(".doEnd();"); //$NON-NLS-1$
- out.write(NL);
-
- return true;
- }
- });
-
- out.write(" }"); //$NON-NLS-1$
- out.write(NL);
- out.write("}"); //$NON-NLS-1$
- out.write(NL);
- }
-}
diff --git a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETTextEditor.java b/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETTextEditor.java
index 4a554a0..a64041e 100644
--- a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETTextEditor.java
+++ b/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETTextEditor.java
@@ -62,7 +62,6 @@ import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
diff --git a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETReconcilingStrategy.java b/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETReconcilingStrategy.java
index 4b6b503..01c5c67 100644
--- a/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETReconcilingStrategy.java
+++ b/plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETReconcilingStrategy.java
@@ -12,6 +12,7 @@ package org.eclipse.jet.internal.editor.configuration;
import java.util.Iterator;
import java.util.List;
+
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jet.core.parser.ast.JETCompilationUnit;
import org.eclipse.jet.core.parser.ast.Problem;
@@ -19,51 +20,57 @@ import org.eclipse.jet.internal.editor.JETEditorHelper;
import org.eclipse.jet.internal.editor.JETTextEditor;
import org.eclipse.jet.internal.editor.annotations.JETAnnotationModel;
import org.eclipse.jet.internal.editor.annotations.JETProblemAnnotation;
-import org.eclipse.jface.text.*;
-import org.eclipse.jface.text.reconciler.*;
+import org.eclipse.jface.text.IDocument;
+import org.eclipse.jface.text.IRegion;
+import org.eclipse.jface.text.Position;
+import org.eclipse.jface.text.reconciler.DirtyRegion;
+import org.eclipse.jface.text.reconciler.IReconcilingStrategy;
+import org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension;
import org.eclipse.jface.text.source.Annotation;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.ui.texteditor.MarkerAnnotation;
+/**
+ * The reconciling strategy for the JET editor
+ * @author Joel
+ */
public class JETReconcilingStrategy implements IReconcilingStrategy, IReconcilingStrategyExtension {
private JETTextEditor jetEditor;
private ISourceViewer sourceViewer;
+ /**
+ * Main constructor
+ * @param sourceViewer
+ * @param jetEditor
+ */
public JETReconcilingStrategy(ISourceViewer sourceViewer, JETTextEditor jetEditor) {
this.jetEditor = jetEditor;
this.sourceViewer = sourceViewer;
}
- public void setDocument(IDocument idocument) {
- }
-
- public void initialReconcile() {
- internalReconcile();
- }
-
- public void reconcile(DirtyRegion dirtyRegion, IRegion subRegion) {
- internalReconcile();
- }
-
- public void reconcile(IRegion partition) {
- internalReconcile();
- }
-
+ /**
+ * This is the single method that performs the annotation model problems evaluations and update
+ */
private void internalReconcile() {
JETCompilationUnit cUnit = jetEditor.requestCompilationUnit();
List cUnitProblems = cUnit.getProblems();
List javaContentProblems = JETEditorHelper.evaluateProblems(jetEditor, sourceViewer.getDocument());
JETAnnotationModel annotationModel = (JETAnnotationModel) sourceViewer.getAnnotationModel();
if (annotationModel != null) {
+ // avoid changes to the annotation model to be notified to the viewers until the job is done
annotationModel.setFireChanges(false);
+
+ // Remove all the previous annotations related to JET problems
+ // and related to resource markers
for (Iterator it = annotationModel.getAnnotationIterator(); it.hasNext();) {
Annotation annotation = (Annotation) it.next();
if ((annotation instanceof JETProblemAnnotation) || (annotation instanceof MarkerAnnotation))
annotationModel.removeAnnotation(annotation);
}
+ // Problems for JET document structure
for (Iterator iterator = cUnitProblems.iterator(); iterator.hasNext(); ) {
Problem problem = (Problem) iterator.next();
JETProblemAnnotation annotation = new JETProblemAnnotation(problem);
@@ -71,6 +78,7 @@ public class JETReconcilingStrategy implements IReconcilingStrategy, IReconcilin
annotationModel.addAnnotation(annotation, position);
}
+ // Problems in java contents of the JET document
for (Iterator iterator = javaContentProblems.iterator(); iterator.hasNext(); ) {
Problem problem = (Problem) iterator.next();
JETProblemAnnotation annotation = new JETProblemAnnotation(problem);
@@ -82,8 +90,22 @@ public class JETReconcilingStrategy implements IReconcilingStrategy, IReconcilin
annotationModel.fireAnnotationModelChanged();
}
}
+
+ public void setDocument(IDocument idocument) {
+ }
- public void setProgressMonitor(IProgressMonitor iprogressmonitor) {
+ public void initialReconcile() {
+ internalReconcile();
}
+ public void reconcile(DirtyRegion dirtyRegion, IRegion subRegion) {
+ internalReconcile();
+ }
+
+ public void reconcile(IRegion partition) {
+ internalReconcile();
+ }
+
+ public void setProgressMonitor(IProgressMonitor iprogressmonitor) {
+ }
} \ No newline at end of file