Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.texteditor
Class SimpleMarkerAnnotation


java.lang.Object
  extended by 

org.eclipse.jface.text.source.Annotation
      extended by 
org.eclipse.ui.texteditor.SimpleMarkerAnnotation
Direct Known Subclasses:
MarkerAnnotation

public class SimpleMarkerAnnotation
extends Annotation

An annotation representing a marker. This is a model annotation.

Since:
3.0
See Also:
IMarker

Field Summary
 
Fields inherited from class org.eclipse.jface.text.source. Annotation
TYPE_UNKNOWN
 
Constructor Summary
SimpleMarkerAnnotation ( IMarker marker)
          Creates a new annotation for the given marker.
SimpleMarkerAnnotation ( String annotationType, IMarker marker)
          Creates a new annotation of the given type for the given marker.
 
Method Summary
 boolean equals ( Object o)
          The SimpleMarkerAnnotation implementation of this Object method returns true iff the other object is of the same class and the marker handles are equal.
  IMarker getMarker ()
          Returns this annotation's underlying marker.
  String getText ()
          Returns the text associated with this annotation.
 int hashCode ()
           
 void update ()
          Informs this annotation about changes applied to its underlying marker and adapts to those changes.
 
Methods inherited from class org.eclipse.jface.text.source. Annotation
getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMarkerAnnotation

public SimpleMarkerAnnotation(
IMarker marker)
Creates a new annotation for the given marker.

Parameters:
marker - the marker
See Also:
IMarker

SimpleMarkerAnnotation

public SimpleMarkerAnnotation(
String annotationType,
                              
IMarker marker)
Creates a new annotation of the given type for the given marker.

Parameters:
annotationType - the annotation type
marker - the marker
Method Detail

getMarker

public 
IMarker getMarker()
Returns this annotation's underlying marker.

Returns:
the marker

equals

public boolean equals(
Object o)
The SimpleMarkerAnnotation implementation of this Object method returns true iff the other object is of the same class and the marker handles are equal.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

update

public void update()
Informs this annotation about changes applied to its underlying marker and adapts to those changes.

Subclasses may extend this method.


getText

public 
String getText()
Description copied from class: Annotation
Returns the text associated with this annotation.

Overrides:
getText in class Annotation
Returns:
the text associated with this annotation or null

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire