Marker verschwinden jetzt.
This commit is contained in:
parent
07e034a638
commit
14c49c22a7
@ -120,7 +120,7 @@ public class JavEditor extends TextEditor{
|
||||
}catch(TypeinferenceException texc){
|
||||
markers.add(new ErrorMarker(texc.getMessage(),new CodePoint(texc.getOffset())));
|
||||
}
|
||||
//Anschlie<EFBFBD>end die TypeReplaceMarker im Quellcode anzeigen: https://stackoverflow.com/questions/8945371/how-to-implement-quick-fix-quick-assist-for-custom-eclipse-editor
|
||||
//Anschließend die TypeReplaceMarker im Quellcode anzeigen: https://stackoverflow.com/questions/8945371/how-to-implement-quick-fix-quick-assist-for-custom-eclipse-editor
|
||||
System.out.println("Typinferez durchgef<65>hrt. Berechnete Marker:\n"+markers);
|
||||
|
||||
IResource activeDocument = extractResource();
|
||||
@ -130,6 +130,7 @@ public class JavEditor extends TextEditor{
|
||||
this.placeMarkers(activeDocument, markers);
|
||||
}
|
||||
this.sourceFile = typeinference.getSourceFile();
|
||||
this.errorMarkers.addAll(markers);
|
||||
this.updateOutlinePage();
|
||||
//this.outlinePage.update(this.sourceFile,this.markers);
|
||||
}
|
||||
@ -155,7 +156,7 @@ public class JavEditor extends TextEditor{
|
||||
String message = rm.getMessage();
|
||||
m.setAttribute(IMarker.MESSAGE, message);
|
||||
m.setAttribute(IMarker.SEVERITY, 1);
|
||||
//rm.setAnnotation(this.addAnnotation(m, point.getPositionInCode()));
|
||||
rm.setAnnotation(this.addAnnotation(m, point.getPositionInCode()));
|
||||
} catch (CoreException e) {
|
||||
new ErrorOutput("Fehler beim Generieren eines Markers");
|
||||
e.printStackTrace();
|
||||
@ -188,7 +189,7 @@ public class JavEditor extends TextEditor{
|
||||
}
|
||||
|
||||
/**
|
||||
* L<EFBFBD>scht die zu marker geh<EFBFBD>rende Annotation
|
||||
* Löscht die zu marker geh<EFBFBD>rende Annotation
|
||||
* @param marker
|
||||
*/
|
||||
private void deleteAnnotation(JavMarker marker){
|
||||
|
Loading…
Reference in New Issue
Block a user