Source Code Cross Referenced 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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2000, 2005 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.jface.text;
011:
012:        /**
013:         * Slave documents are documents whose contents is defined in terms of a master
014:         * document. Thus, slave documents usually reflect a projection of the master document.
015:         * Slave documents are causally connected to the master document. This means, changes
016:         * of the master document have immediate effect on the slave document and vice versa.
017:         * <p>
018:         * A slave document manager creates slave documents for given master documents, manages the
019:         * life cycle of the slave documents, and keeps track of the information flow between
020:         * master and slave documents. The slave document manager defines the construction rules of the
021:         * slave documents in terms of the master document.</p>
022:         * <p>
023:         * In order to provided backward compatibility for clients of <code>ISlaveDocumentManager</code>, extension
024:         * interfaces are used to provide a means of evolution. The following extension interfaces
025:         * exist:
026:         * <ul>
027:         * <li> {@link org.eclipse.jface.text.ISlaveDocumentManagerExtension} since version 3.0 extending the protocol
028:         *      with an access to all managed slave document for a given master document. </li>
029:         * </ul>
030:         * </p>
031:         *
032:         * @see org.eclipse.jface.text.IDocument
033:         * @since 2.1
034:         */
035:        public interface ISlaveDocumentManager {
036:
037:            /**
038:             * Creates a new slave document for the given master document. The slave document
039:             * is causally connected to its master document until <code>freeSlaveDocument</code>
040:             * is called. The connection between the newly created slave document and the master
041:             * document is managed by this slave document manager.
042:             *
043:             * @param master the master document
044:             * @return the newly created slave document
045:             * @see #freeSlaveDocument(IDocument)
046:             */
047:            IDocument createSlaveDocument(IDocument master);
048:
049:            /**
050:             * Frees the given slave document. If the given document is not a slave document known
051:             * to this slave document manager, this call does not have any effect. A slave
052:             * document is known to this slave document manager if it has been created by
053:             * this manager using <code>createSlaveDocument</code>.
054:             *
055:             * @param slave the slave document to be freed
056:             * @see #createSlaveDocument(IDocument)
057:             */
058:            void freeSlaveDocument(IDocument slave);
059:
060:            /**
061:             * Creates a new document information mapping between the given slave document and
062:             * its master document. Returns <code>null</code> if the given document is unknown
063:             * to this slave document manager.
064:             *
065:             * @param slave the slave document
066:             * @return a document information mapping between the slave document and its master document or
067:             * 		<code>null</code>
068:             */
069:            IDocumentInformationMapping createMasterSlaveMapping(IDocument slave);
070:
071:            /**
072:             * Returns the master document of the given slave document or <code>null</code> if the
073:             * given document is unknown to this slave document manager.
074:             *
075:             * @param slave the slave document
076:             * @return the master document of the given slave document or <code>null</code>
077:             */
078:            IDocument getMasterDocument(IDocument slave);
079:
080:            /**
081:             * Returns whether the given document is a slave document known to this slave document manager. A slave document
082:             * is known to this slave document manager, if the document has been created by this manager.
083:             *
084:             * @param document the document to be checked whether it is a slave document known to this manager
085:             * @return <code>true</code> if the document is a slave document, <code>false</code> otherwise
086:             */
087:            boolean isSlaveDocument(IDocument document);
088:
089:            /**
090:             * Sets the given slave document's auto expand mode. In auto expand mode, a
091:             * slave document is automatically adapted to reflect all changes applied to it's master document.
092:             * Assume a master document contains 30 lines and the slave is defined to contain the lines 11-20.
093:             * In auto expand mode, when the master document is changed at line 8, the slave document is expanded
094:             * to contain the lines 8-20.<p>
095:             * This call is without effect if the given document is unknown to this slave document manager.
096:             *
097:             * @param slave the slave whose auto expand mode should be set
098:             * @param autoExpand <code>true</code> for auto expand, <code>false</code> otherwise
099:             */
100:            void setAutoExpandMode(IDocument slave, boolean autoExpand);
101:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.