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.quickdiff
Class QuickDiff

java.lang.Object
  extended by 
org.eclipse.ui.texteditor.quickdiff.QuickDiff

public class QuickDiff
extends Object

Access class for the quick diff reference provider extension point.

This class may be instantiated, it is not intended to be subclassed.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.

Constructor Summary
QuickDiff ()
          Creates a new instance.
 
Method Summary
  IAnnotationModel createQuickDiffAnnotationModel ( ITextEditor editor, String id)
          Creates a new line differ annotation model with its reference provider set to the reference provider obtained by calling getReferenceProviderOrDefault(editor, id).
  Object getConfiguredQuickDiffProvider ( IAnnotationModel differ)
          Returns the identifier of the quick diff provider installed with the given diff annotation model, or the empty string if it is not a diff annotation model or has no configured diff provider.
  ReferenceProviderDescriptor getDefaultProvider ()
          Returns the descriptor of the "last saved version" reference provider.
  List getReferenceProviderDescriptors ()
          Returns a non-modifiable list of ReferenceProviderDescriptor describing all extension to the quickDiffReferenceProvider extension point.
  IQuickDiffReferenceProvider getReferenceProviderOrDefault ( ITextEditor editor, String id)
          Returns the quick diff reference provider registered under id, or the default reference provider.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickDiff

public QuickDiff()
Creates a new instance.

Method Detail

getDefaultProvider

public 
ReferenceProviderDescriptor getDefaultProvider()
Returns the descriptor of the "last saved version" reference provider.

Clients should not cache this value because it can change when plug-ins get dynamically added or removed.

Returns:
the descriptor of "last saved version" reference provider or null if none

getReferenceProviderDescriptors

public 
List getReferenceProviderDescriptors()
Returns a non-modifiable list of ReferenceProviderDescriptor describing all extension to the quickDiffReferenceProvider extension point.

Clients should not cache this list because it can change when plug-ins get dynamically added or removed.

Returns:
the non-modifiable list of extensions to the quickDiffReferenceProvider extension point.

getReferenceProviderOrDefault

public 
IQuickDiffReferenceProvider getReferenceProviderOrDefault(
ITextEditor editor,
                                                                 
String id)
Returns the quick diff reference provider registered under id, or the default reference provider. The returned provider gets its editor set to editor. If neither the requested provider nor the default provider return true from isEnabled after having the editor set, null is returned.

Clients should not cache this value because it can change when plug-ins get dynamically added or removed.

Parameters:
editor - the editor to be installed with the returned provider
id - the id as specified in the plugin.xml that installs the reference provider
Returns:
the reference provider registered under id, or the default reference provider, or null

createQuickDiffAnnotationModel

public 
IAnnotationModel createQuickDiffAnnotationModel(
ITextEditor editor,
                                                       
String id)
Creates a new line differ annotation model with its reference provider set to the reference provider obtained by calling getReferenceProviderOrDefault(editor, id).

Parameters:
editor - the editor to be installed with the returned provider
id - the id as specified in the plugin.xml that installs the reference provider
Returns:
a quick diff annotation model

getConfiguredQuickDiffProvider

public 
Object getConfiguredQuickDiffProvider(
IAnnotationModel differ)
Returns the identifier of the quick diff provider installed with the given diff annotation model, or the empty string if it is not a diff annotation model or has no configured diff provider.

Parameters:
differ - a diff annotation model
Returns:
the reference provider id, or the empty string for none
Since:
3.2

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