Java Doc for ISlaveDocumentManager.java in  » IDE-Eclipse » text » org » eclipse » jface » text » 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 » text » org.eclipse.jface.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.jface.text.ISlaveDocumentManager

All known Subclasses:   org.eclipse.jface.text.projection.ProjectionDocumentManager,
ISlaveDocumentManager
public interface ISlaveDocumentManager (Code)
Slave documents are documents whose contents is defined in terms of a master document. Thus, slave documents usually reflect a projection of the master document. Slave documents are causally connected to the master document. This means, changes of the master document have immediate effect on the slave document and vice versa.

A slave document manager creates slave documents for given master documents, manages the life cycle of the slave documents, and keeps track of the information flow between master and slave documents. The slave document manager defines the construction rules of the slave documents in terms of the master document.

In order to provided backward compatibility for clients of ISlaveDocumentManager, extension interfaces are used to provide a means of evolution. The following extension interfaces exist:


See Also:   org.eclipse.jface.text.IDocument
since:
   2.1




Method Summary
 IDocumentInformationMappingcreateMasterSlaveMapping(IDocument slave)
     Creates a new document information mapping between the given slave document and its master document.
 IDocumentcreateSlaveDocument(IDocument master)
     Creates a new slave document for the given master document.
 voidfreeSlaveDocument(IDocument slave)
     Frees the given slave document.
 IDocumentgetMasterDocument(IDocument slave)
     Returns the master document of the given slave document or null if the given document is unknown to this slave document manager.
 booleanisSlaveDocument(IDocument document)
     Returns whether the given document is a slave document known to this slave document manager.
 voidsetAutoExpandMode(IDocument slave, boolean autoExpand)
     Sets the given slave document's auto expand mode.



Method Detail
createMasterSlaveMapping
IDocumentInformationMapping createMasterSlaveMapping(IDocument slave)(Code)
Creates a new document information mapping between the given slave document and its master document. Returns null if the given document is unknown to this slave document manager.
Parameters:
  slave - the slave document a document information mapping between the slave document and its master document ornull



createSlaveDocument
IDocument createSlaveDocument(IDocument master)(Code)
Creates a new slave document for the given master document. The slave document is causally connected to its master document until freeSlaveDocument is called. The connection between the newly created slave document and the master document is managed by this slave document manager.
Parameters:
  master - the master document the newly created slave document
See Also:   ISlaveDocumentManager.freeSlaveDocument(IDocument)



freeSlaveDocument
void freeSlaveDocument(IDocument slave)(Code)
Frees the given slave document. If the given document is not a slave document known to this slave document manager, this call does not have any effect. A slave document is known to this slave document manager if it has been created by this manager using createSlaveDocument.
Parameters:
  slave - the slave document to be freed
See Also:   ISlaveDocumentManager.createSlaveDocument(IDocument)



getMasterDocument
IDocument getMasterDocument(IDocument slave)(Code)
Returns the master document of the given slave document or null if the given document is unknown to this slave document manager.
Parameters:
  slave - the slave document the master document of the given slave document or null



isSlaveDocument
boolean isSlaveDocument(IDocument document)(Code)
Returns whether the given document is a slave document known to this slave document manager. A slave document is known to this slave document manager, if the document has been created by this manager.
Parameters:
  document - the document to be checked whether it is a slave document known to this manager true if the document is a slave document, false otherwise



setAutoExpandMode
void setAutoExpandMode(IDocument slave, boolean autoExpand)(Code)
Sets the given slave document's auto expand mode. In auto expand mode, a slave document is automatically adapted to reflect all changes applied to it's master document. Assume a master document contains 30 lines and the slave is defined to contain the lines 11-20. In auto expand mode, when the master document is changed at line 8, the slave document is expanded to contain the lines 8-20.

This call is without effect if the given document is unknown to this slave document manager.
Parameters:
  slave - the slave whose auto expand mode should be set
Parameters:
  autoExpand - true for auto expand, false otherwise




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