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:
parent
62819ec5c5
commit
59e9b2a504
1 changed files with 0 additions and 43 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue