1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

remove of this file no longer use, the AnnotaionModel

is now located in the CDocumentProvider.
This commit is contained in:
Alain Magloire 2004-05-12 03:54:21 +00:00
parent 62819ec5c5
commit 59e9b2a504

View file

@ -1,43 +0,0 @@
package org.eclipse.cdt.internal.ui.editor;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
import org.eclipse.ui.texteditor.MarkerAnnotation;
import org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel;
public class CMarkerAnnotationModel extends ResourceMarkerAnnotationModel {
/**
* Constructor for CMarkerAnnotationModel
*/
public CMarkerAnnotationModel(IResource resource) {
super(resource);
}
/**
* @see AbstractMarkerAnnotationModel#createMarkerAnnotation(IMarker)
*/
protected MarkerAnnotation createMarkerAnnotation(IMarker marker) {
//String markerType = MarkerUtilities.getMarkerType(marker);
return new CMarkerAnnotation(marker, fDocument);
}
/**
* @see AbstractMarkerAnnotationModel#modifyMarkerAnnotation(IMarker)
*/
protected void modifyMarkerAnnotation(IMarker marker) {
MarkerAnnotation a= getMarkerAnnotation(marker);
if (a == null) {
// It might not have been good enough before, but now it
// is, try adding this marker into the model again.
addMarkerAnnotation(marker);
}
super.modifyMarkerAnnotation(marker);
}
}