There are 1 code examples for org.eclipse.jface.text.Position.
The API names are highlighted below.
You can use
button
to vote the code example(s) you like. The best code example will be ranked first next time. Thanks a lot for your feedback.
Project Name: CodeAnalyzer Package: de.fzi.cloneanalyzer.core
Source Code: CloneInstanceEclipse.java (Click to view .java file)
Method Code:
/**
* adds an Annotation(the vertical line) to the
* AnnotationModel of the corresponding cloneFile
*/
public void addAnnotation(){
Position pos=new Position(getStartCharacterPosition(),getCharacterLength());
Annotation ann=new CloneAnnotation(this);
IAnnotationModel model=getCloneFileEclipse().getAnnotationModel();
model.addAnnotation(ann,pos);
}