Java Doc for DocumentLineDiffer.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » internal » texteditor » quickdiff » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui workbench » org.eclipse.ui.internal.texteditor.quickdiff 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.internal.texteditor.quickdiff.DocumentLineDiffer

DocumentLineDiffer
public class DocumentLineDiffer implements ILineDiffer,IDocumentListener,IAnnotationModel,ILineDifferExtension,ILineDifferExtension2(Code)
Standard implementation of ILineDiffer as an incremental diff engine. A DocumentLineDiffer can be initialized to some start state. Once connected to a IDocument and a reference document has been set, changes reported via the IDocumentListener interface will be tracked and the incremental diff updated.

The diff state can be queried using the ILineDiffer interface.

Since diff information is model information attached to a document, this class implements IAnnotationModel and can be attached to IAnnotationModelExtensions.

This class is not supposed to be subclassed.


since:
   3.0


Field Summary
 IQuickDiffReferenceProviderfReferenceProvider
     The provider for the reference document.

Constructor Summary
public  DocumentLineDiffer()
     Creates a new differ.

Method Summary
public  voidaddAnnotation(Annotation annotation, Position position)
    
public  voidaddAnnotationModelListener(IAnnotationModelListener listener)
    
public  voidconnect(IDocument document)
    
public  voiddisconnect(IDocument document)
    
public synchronized  voiddocumentAboutToBeChanged(DocumentEvent event)
    
public synchronized  voiddocumentChanged(DocumentEvent event)
    
protected  voidfireModelChanged()
     Informs all annotation model listeners that this model has been changed.
protected  voidfireModelChanged(AnnotationModelEvent event)
     Informs all annotation model listeners that this model has been changed as described in the annotation model event.
public  IteratorgetAnnotationIterator()
    
public  ILineDiffInfogetLineInfo(int line)
    
public  PositiongetPosition(Annotation annotation)
    
public  IQuickDiffReferenceProvidergetReferenceProvider()
     Returns the reference provider currently installed, or null if none is installed.
 voidhandleAboutToBeChanged(DocumentEvent event)
     Unsynchronized version of documentAboutToBeChanged, called by documentAboutToBeChanged and DocumentLineDiffer.initialize() .
 voidhandleChanged(DocumentEvent event)
     Implementation of documentChanged, non synchronized.
protected synchronized  voidinitialize()
     (Re-)initializes the differ using the current reference and DiffInitializer.
public synchronized  booleanisSuspended()
     Returns true if the differ is suspended.
public synchronized  booleanisSynchronized()
     Returns the receivers synchronization state.
public  voidremoveAnnotation(Annotation annotation)
    
public  voidremoveAnnotationModelListener(IAnnotationModelListener listener)
    
public synchronized  intrestoreAfterLine(int line)
    
public synchronized  voidresume()
    
public synchronized  voidrevertBlock(int line)
    
public synchronized  voidrevertLine(int line)
    
public synchronized  voidrevertSelection(int line, int nLines)
    
public  voidsetReferenceProvider(IQuickDiffReferenceProvider provider)
     Sets the reference provider for this instance.
public  voidsuspend()
    

Field Detail
fReferenceProvider
IQuickDiffReferenceProvider fReferenceProvider(Code)
The provider for the reference document.




Constructor Detail
DocumentLineDiffer
public DocumentLineDiffer()(Code)
Creates a new differ.




Method Detail
addAnnotation
public void addAnnotation(Annotation annotation, Position position)(Code)



addAnnotationModelListener
public void addAnnotationModelListener(IAnnotationModelListener listener)(Code)



connect
public void connect(IDocument document)(Code)



disconnect
public void disconnect(IDocument document)(Code)



documentAboutToBeChanged
public synchronized void documentAboutToBeChanged(DocumentEvent event)(Code)



documentChanged
public synchronized void documentChanged(DocumentEvent event)(Code)



fireModelChanged
protected void fireModelChanged()(Code)
Informs all annotation model listeners that this model has been changed.



fireModelChanged
protected void fireModelChanged(AnnotationModelEvent event)(Code)
Informs all annotation model listeners that this model has been changed as described in the annotation model event. The event is sent out to all listeners implementing IAnnotationModelListenerExtension. All other listeners are notified by just calling modelChanged(IAnnotationModel).
Parameters:
  event - the event to be sent out to the listeners



getAnnotationIterator
public Iterator getAnnotationIterator()(Code)



getLineInfo
public ILineDiffInfo getLineInfo(int line)(Code)



getPosition
public Position getPosition(Annotation annotation)(Code)



getReferenceProvider
public IQuickDiffReferenceProvider getReferenceProvider()(Code)
Returns the reference provider currently installed, or null if none is installed. the current reference provider.



handleAboutToBeChanged
void handleAboutToBeChanged(DocumentEvent event) throws BadLocationException(Code)
Unsynchronized version of documentAboutToBeChanged, called by documentAboutToBeChanged and DocumentLineDiffer.initialize() .
Parameters:
  event - the document event to be handled
throws:
  BadLocationException - if document access fails



handleChanged
void handleChanged(DocumentEvent event) throws BadLocationException(Code)
Implementation of documentChanged, non synchronized.
Parameters:
  event - the document event
throws:
  BadLocationException - if document access fails somewhere



initialize
protected synchronized void initialize()(Code)
(Re-)initializes the differ using the current reference and DiffInitializer.
since:
   3.2 protected for testing reasons, package visible before



isSuspended
public synchronized boolean isSuspended()(Code)
Returns true if the differ is suspended. true if the differ is suspended



isSynchronized
public synchronized boolean isSynchronized()(Code)
Returns the receivers synchronization state. true if we are initialized and in sync with the document.



removeAnnotation
public void removeAnnotation(Annotation annotation)(Code)



removeAnnotationModelListener
public void removeAnnotationModelListener(IAnnotationModelListener listener)(Code)



restoreAfterLine
public synchronized int restoreAfterLine(int line) throws BadLocationException(Code)



resume
public synchronized void resume()(Code)



revertBlock
public synchronized void revertBlock(int line) throws BadLocationException(Code)



revertLine
public synchronized void revertLine(int line) throws BadLocationException(Code)



revertSelection
public synchronized void revertSelection(int line, int nLines) throws BadLocationException(Code)



setReferenceProvider
public void setReferenceProvider(IQuickDiffReferenceProvider provider)(Code)
Sets the reference provider for this instance. If one has been installed before, it is disposed.
Parameters:
  provider - the new provider



suspend
public void suspend()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.