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.compare
Class CompareNavigator


java.lang.Object
  extended by 
org.eclipse.compare.CompareNavigator
All Implemented Interfaces:
ICompareNavigator

public abstract class CompareNavigator
extends Object
implements ICompareNavigator

Supports cross-pane navigation through the differences of a compare container.

Clients may subclass this class.

Since:
3.3
See Also:
INavigatable

Constructor Summary
CompareNavigator ()
           
 
Method Summary
protected abstract   INavigatable[] getNavigatables ()
           
protected   INavigatable getNavigator ( Object object)
          Return the INavigatable for the given object.
 boolean hasChange (boolean next)
          Return whether a call to ICompareNavigator.selectChange(boolean) with the same parameter would succeed.
 boolean selectChange (boolean next)
          Starting from the current selection selectChange selects and reveals the next (previous) change.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareNavigator

public CompareNavigator()
Method Detail

selectChange

public boolean selectChange(boolean next)
Description copied from interface: ICompareNavigator
Starting from the current selection selectChange selects and reveals the next (previous) change. If the end (or beginning) is reached, the method returns true.

Specified by:
selectChange in interface ICompareNavigator
Parameters:
next - if true the next change is selected, otherwise the previous change
Returns:
returns true if end (beginning) is reached, false otherwise

getNavigatables

protected abstract 
INavigatable[] getNavigatables()

getNavigator

protected final 
INavigatable getNavigator(
Object object)
Return the INavigatable for the given object. If the object implements INavigatable, then the object is returned. Otherwise, if the object implements IAdaptable, the object is adapted to INavigatable.

Parameters:
object - the object
Returns:
the INavigatable for the given object or null

hasChange

public boolean hasChange(boolean next)
Return whether a call to ICompareNavigator.selectChange(boolean) with the same parameter would succeed.

Parameters:
next - if true the next change is selected, otherwise the previous change
Returns:
whether a call to ICompareNavigator.selectChange(boolean) with the same parameter would succeed.
Since:
3.3

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