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

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 BasicMarkerUpdater

java.lang.Object
  extended by 
org.eclipse.ui.texteditor.BasicMarkerUpdater
All Implemented Interfaces:
IMarkerUpdater

public final class BasicMarkerUpdater
extends Object
implements IMarkerUpdater

Updates a marker's positional attributes which are start position, end position, and line number.


Constructor Summary
BasicMarkerUpdater ()
          Creates a new basic marker updater.
 
Method Summary
  String[] getAttribute ()
          Returns the attributes for which this updater is responsible.
  String getMarkerType ()
          Returns the marker type for which this updater is responsible.
 boolean updateMarker ( IMarker marker, IDocument document, Position position)
          Updates the given marker according to the position of the given document.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMarkerUpdater

public BasicMarkerUpdater()
Creates a new basic marker updater.

Method Detail

getAttribute

public 
String[] getAttribute()
Description copied from interface: IMarkerUpdater
Returns the attributes for which this updater is responsible. If the result is null, the updater assumes responsibility for any attributes.

Specified by:
getAttribute in interface IMarkerUpdater
Returns:
the attributes or null for any attribute

getMarkerType

public 
String getMarkerType()
Description copied from interface: IMarkerUpdater
Returns the marker type for which this updater is responsible. If the result is null, the updater assumes responsibility for any marker type.

Specified by:
getMarkerType in interface IMarkerUpdater
Returns:
the marker type or null for any marker type

updateMarker

public boolean updateMarker(
IMarker marker,
                            
IDocument document,
                            
Position position)
Description copied from interface: IMarkerUpdater
Updates the given marker according to the position of the given document. If the given position is null, the marker is assumed to carry the correct positional information.

Specified by:
updateMarker in interface IMarkerUpdater
Parameters:
marker - the marker to be updated
document - the document into which the given position points
position - the current position of the marker inside the given document
Returns:
false if the updater recognizes that the marker should be deleted

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