|
|
|
|
Uses of Interface org.eclipse.jface.text.IDocument
Constructors in
org.eclipse.compare.structuremergeviewer with parameters of type
IDocument
|
DocumentRangeNode
(
DocumentRangeNode parent,
int typeCode,
String id,
IDocument document,
int start,
int length)
Creates a new DocumentRangeNode for the given range within the specified
document. |
DocumentRangeNode
(int typeCode,
String id,
IDocument document,
int start,
int length)
Creates a new DocumentRangeNode for the given range within the specified
document. |
StructureRootNode
(
IDocument document,
Object input,
StructureCreator creator,
ISharedDocumentAdapter adapter)
Create the structure root node. |
Methods in
org.eclipse.core.filebuffers with parameters of type
IDocument
|
void
|
IPersistableAnnotationModel.
commit
(
IDocument document)
Transforms the current transient state of the annotation model into a
persistent state. |
ITextFileBuffer
|
ITextFileBufferManager.
getTextFileBuffer
(
IDocument document)
Returns the text file buffer managed for the given document
or null if there is no such text file buffer. |
void
|
IPersistableAnnotationModel.
reinitialize
(
IDocument document)
Forces this annotation model to re-initialize from the persistent state. |
void
|
IPersistableAnnotationModel.
revert
(
IDocument document)
Changes the current transient state of the annotation model to match the
last persisted state. |
void
|
IDocumentSetupParticipant.
setup
(
IDocument document)
Sets up the document to be ready for use by a text file buffer. |
void
|
IDocumentSetupParticipantExtension.
setup
(
IDocument document,
IPath location,
LocationKind locationKind)
Sets up the document to be ready for use by a text file buffer. |
Methods in
org.eclipse.jface.text with parameters of type
IDocument
|
static void
|
TextUtilities.
addDocumentPartitioners
(
IDocument document,
Map partitioners)
Connects the given document with all document partitioners stored in the given map under
their partitioning name. |
static
ITypedRegion[]
|
TextUtilities.
computePartitioning
(
IDocument document,
String partitioning,
int offset,
int length,
boolean includeZeroLengthPartitions)
Computes and returns the partitioning for the given region of the given
document for the given partitioning name. |
static
String[]
|
TextUtilities.
computePartitionManagingCategories
(
IDocument document)
Computes and returns the partition managing position categories for the
given document or null if this was impossible. |
void
|
IDocumentPartitioner.
connect
(
IDocument document)
Connects the partitioner to a document. |
void
|
IDocumentPartitionerExtension3.
connect
(
IDocument document,
boolean delayInitialization)
Connects this partitioner to a document. |
IDocumentInformationMapping
|
ISlaveDocumentManager.
createMasterSlaveMapping
(
IDocument slave)
Creates a new document information mapping between the given slave document and
its master document. |
IDocument
|
ISlaveDocumentManager.
createSlaveDocument
(
IDocument master)
Creates a new slave document for the given master document. |
protected
IDocument
|
TextViewer.
createSlaveDocument
(
IDocument document)
Creates a slave document for the given document if there is a slave document manager
associated with this viewer. |
void
|
DefaultIndentLineAutoEditStrategy.
customizeDocumentCommand
(
IDocument d,
DocumentCommand c)
|
void
|
TabsToSpacesConverter.
customizeDocumentCommand
(
IDocument document,
DocumentCommand command)
|
void
|
IAutoEditStrategy.
customizeDocumentCommand
(
IDocument document,
DocumentCommand command)
Allows the strategy to manipulate the document command. |
void
|
IDocumentPartitioningListener.
documentPartitioningChanged
(
IDocument document)
The partitioning of the given document changed. |
void
|
IDocumentPartitioningListenerExtension.
documentPartitioningChanged
(
IDocument document,
IRegion region)
The partitioning of the given document changed in the given region. |
protected int
|
DefaultIndentLineAutoEditStrategy.
findEndOfWhiteSpace
(
IDocument document,
int offset,
int end)
Returns the first offset greater than offset and smaller than
end whose character is not a space or tab character. |
protected
IRegion
|
DefaultTextDoubleClickStrategy.
findExtendedDoubleClickSelection
(
IDocument document,
int offset)
Tries to find a suitable double click selection for the given offset. |
protected
IRegion
|
DefaultTextDoubleClickStrategy.
findWord
(
IDocument document,
int offset)
Tries to find the word at the given offset. |
protected void
|
TextViewer.
fireInputDocumentAboutToBeChanged
(
IDocument oldInput,
IDocument newInput)
Informs all registered text input listeners about the forthcoming input change,
This method does not use a robust iterator. |
protected void
|
TextViewer.
fireInputDocumentChanged
(
IDocument oldInput,
IDocument newInput)
Informs all registered text input listeners about the successful input change,
This method does not use a robust iterator. |
void
|
ISlaveDocumentManager.
freeSlaveDocument
(
IDocument slave)
Frees the given slave document. |
protected void
|
TextViewer.
freeSlaveDocument
(
IDocument slave)
Frees the given document if it is a slave document. |
static
String
|
TextUtilities.
getContentType
(
IDocument document,
String partitioning,
int offset,
boolean preferOpenPartitions)
Returns the content type at the given offset of the given document. |
static
String
|
TextUtilities.
getDefaultLineDelimiter
(
IDocument document)
Returns the default line delimiter for the given document. |
IDocument
|
ISlaveDocumentManager.
getMasterDocument
(
IDocument slave)
Returns the master document of the given slave document or null if the
given document is unknown to this slave document manager. |
static
ITypedRegion
|
TextUtilities.
getPartition
(
IDocument document,
String partitioning,
int offset,
boolean preferOpenPartitions)
Returns the partition of the given offset of the given document. |
IDocument[]
|
ISlaveDocumentManagerExtension.
getSlaveDocuments
(
IDocument master)
Returns the list of slave documents for the given master document or
null if there are no such slave document. |
protected void
|
TextViewer.
initializeDocumentInformationMapping
(
IDocument visibleDocument)
Initializes the document information mapping between the given slave document and
its master document. |
void
|
ITextInputListener.
inputDocumentAboutToBeChanged
(
IDocument oldInput,
IDocument newInput)
Called before the input document is replaced. |
void
|
PaintManager.
inputDocumentAboutToBeChanged
(
IDocument oldInput,
IDocument newInput)
|
void
|
ITextInputListener.
inputDocumentChanged
(
IDocument oldInput,
IDocument newInput)
Called after the input document has been replaced. |
void
|
PaintManager.
inputDocumentChanged
(
IDocument oldInput,
IDocument newInput)
|
boolean
|
ISlaveDocumentManager.
isSlaveDocument
(
IDocument document)
Returns whether the given document is a slave document known to this slave document manager. |
static
DocumentEvent
|
TextUtilities.
mergeUnprocessedDocumentEvents
(
IDocument unprocessedDocument,
List documentEvents)
Returns a document event which is an accumulation of a list of document events,
null if the list of documentEvents is empty. |
void
|
IDocumentExtension.IReplace.
perform
(
IDocument document,
IDocumentListener owner)
Executes the replace operation on the given document. |
static
Map
|
TextUtilities.
removeDocumentPartitioners
(
IDocument document)
Removes all connected document partitioners from the given document and stores them
under their partitioning name in a map. |
void
|
ISlaveDocumentManager.
setAutoExpandMode
(
IDocument slave,
boolean autoExpand)
Sets the given slave document's auto expand mode. |
void
|
TextViewer.
setDocument
(
IDocument document)
|
void
|
IDocumentAdapter.
setDocument
(
IDocument document)
Sets the adapters document. |
void
|
ITextViewer.
setDocument
(
IDocument document)
Sets the given document as the text viewer's model and updates the
presentation accordingly. |
void
|
TextViewer.
setDocument
(
IDocument document,
int modelRangeOffset,
int modelRangeLength)
|
void
|
ITextViewer.
setDocument
(
IDocument document,
int modelRangeOffset,
int modelRangeLength)
Sets the given document as this viewer's model and
exposes the specified region. |
protected void
|
TextViewer.
setVisibleDocument
(
IDocument document)
Sets this viewer's visible document. |
protected boolean
|
TextViewer.
updateSlaveDocument
(
IDocument slaveDocument,
int modelRangeOffset,
int modelRangeLength)
Updates the given slave document to show the specified range of its master document. |
protected boolean
|
TextViewer.
updateVisibleDocument
(
IDocument visibleDocument,
int visibleRegionOffset,
int visibleRegionLength)
Deprecated. use updateSlaveDocument instead
|
Constructors in
org.eclipse.jface.text with parameters of type
IDocument
|
BlockTextSelection
(
IDocument document,
int startLine,
int startColumn,
int endLine,
int endColumn,
int tabWidth)
Creates a column selection for the given lines and columns. |
DocumentEvent
(
IDocument doc,
int offset,
int length,
String text)
Creates a new document event. |
DocumentPartitioningChangedEvent
(
IDocument document)
Creates a new document partitioning changed event for the given document. |
DocumentRewriteSessionEvent
(
IDocument doc,
DocumentRewriteSession session,
Object changeType)
Creates a new document event. |
FindReplaceDocumentAdapter
(
IDocument document)
Constructs a new find replace document adapter. |
MarkSelection
(
IDocument document,
int offset,
int length)
Creates a MarkSelection. |
RewriteSessionEditProcessor
(
IDocument document,
TextEdit root,
int style)
Constructs a new edit processor for the given document. |
SlaveDocumentEvent
(
IDocument doc,
int offset,
int length,
String text,
DocumentEvent masterEvent)
Creates a new slave document event. |
TextSelection
(
IDocument document,
int offset,
int length)
Creates a text selection for the given range of the given document. |
Methods in
org.eclipse.jface.text.formatter with parameters of type
IDocument
|
void
|
IContentFormatterExtension.
format
(
IDocument document,
IFormattingContext context)
Formats the given region of the specified document. |
void
|
MultiPassContentFormatter.
format
(
IDocument medium,
IFormattingContext context)
|
void
|
MultiPassContentFormatter.
format
(
IDocument medium,
IRegion region)
|
void
|
IContentFormatter.
format
(
IDocument document,
IRegion region)
Formats the given region of the specified document.The formatter may safely
assume that it is the only subject that modifies the document at this point in time. |
void
|
ContentFormatter.
format
(
IDocument document,
IRegion region)
|
protected void
|
MultiPassContentFormatter.
formatMaster
(
IFormattingContext context,
IDocument document,
int offset,
int length)
Formats the document specified in the formatting context with the master
formatting strategy. |
protected void
|
MultiPassContentFormatter.
formatSlave
(
IFormattingContext context,
IDocument document,
int offset,
int length,
String type)
Formats the document specified in the formatting context with the
formatting strategy registered for the content type. |
protected void
|
MultiPassContentFormatter.
formatSlaves
(
IFormattingContext context,
IDocument document,
int offset,
int length)
Formats the document specified in the formatting context with the slave
formatting strategies. |
protected boolean
|
ContentFormatter.
positionAboutToBeAdded
(
IDocument document,
String category,
Position position)
The given position is about to be added to the given position category of the given document. |
protected void
|
ContentFormatter.
updateAffectedPositions
(
IDocument document,
int[] positions,
int offset)
Updates all the overlapping positions. |
Methods in
org.eclipse.jface.text.link with parameters of type
IDocument
|
static void
|
LinkedModeModel.
closeAllModels
(
IDocument document)
Cancels any linked mode model on the specified document. |
static
LinkedModeModel
|
LinkedModeModel.
getModel
(
IDocument document,
int offset)
Returns the model currently active on document at
offset , or null if there is none. |
static boolean
|
LinkedModeModel.
hasInstalledModel
(
IDocument document)
Checks whether there is already a model installed on document . |
static boolean
|
LinkedModeModel.
hasInstalledModel
(
IDocument[] documents)
Checks whether there is already a linked mode model installed on any of
the documents . |
protected boolean
|
LinkedPosition.
includes
(
IDocument doc,
int off,
int len)
Returns whether this position includes the range given by
offset and length . |
Constructors in
org.eclipse.jface.text.link with parameters of type
IDocument
|
LinkedPosition
(
IDocument document,
int offset,
int length)
Creates a new instance. |
LinkedPosition
(
IDocument document,
int offset,
int length,
int sequence)
Creates a new instance. |
ProposalPosition
(
IDocument document,
int offset,
int length,
ICompletionProposal[] proposals)
Creates a new instance, with no sequence number. |
ProposalPosition
(
IDocument document,
int offset,
int length,
int sequence,
ICompletionProposal[] proposals)
Creates a new instance. |
Constructors in
org.eclipse.jface.text.projection with parameters of type
IDocument
|
ChildDocument
(
IDocument masterDocument)
Creates a new child document. |
ProjectionDocument
(
IDocument masterDocument)
Creates a projection document for the given master document. |
ProjectionDocumentEvent
(
IDocument doc,
int offset,
int length,
String text,
DocumentEvent masterEvent)
Creates a new content change event caused by the given master document
change. |
ProjectionDocumentEvent
(
IDocument doc,
int offset,
int length,
String text,
int masterOffset,
int masterLength)
Creates a new projection change event for the given properties. |
ProjectionDocumentEvent
(
IDocument doc,
int offset,
int length,
String text,
int masterOffset,
int masterLength,
DocumentEvent masterEvent)
Creates a new projection document event for the given properties. |
ProjectionMapping
(
IDocument masterDocument,
String fragmentsCategory,
IDocument slaveDocument,
String segmentsCategory)
Creates a new mapping between the given parent document and the given projection document. |
Methods in
org.eclipse.jface.text.rules with parameters of type
IDocument
|
void
|
RuleBasedPartitioner.
connect
(
IDocument document)
Deprecated. |
void
|
FastPartitioner.
connect
(
IDocument document)
|
void
|
DefaultPartitioner.
connect
(
IDocument document)
Deprecated. |
void
|
FastPartitioner.
connect
(
IDocument document,
boolean delayInitialization)
Connects this partitioner to a document. |
void
|
DefaultPartitioner.
connect
(
IDocument document,
boolean delayInitialization)
Deprecated. |
void
|
DefaultDamagerRepairer.
setDocument
(
IDocument document)
|
void
|
RuleBasedPartitionScanner.
setPartialRange
(
IDocument document,
int offset,
int length,
String contentType,
int partitionOffset)
|
void
|
IPartitionTokenScanner.
setPartialRange
(
IDocument document,
int offset,
int length,
String contentType,
int partitionOffset)
Configures the scanner by providing access to the document range that should be scanned. |
void
|
ITokenScanner.
setRange
(
IDocument document,
int offset,
int length)
Configures the scanner by providing access to the document range that should
be scanned. |
void
|
RuleBasedPartitionScanner.
setRange
(
IDocument document,
int offset,
int length)
|
void
|
BufferedRuleBasedScanner.
setRange
(
IDocument document,
int offset,
int length)
|
void
|
RuleBasedScanner.
setRange
(
IDocument document,
int offset,
int length)
|
Methods in
org.eclipse.jface.text.source with parameters of type
IDocument
|
protected void
|
AnnotationModel.
addPosition
(
IDocument document,
Position position)
Adds the given position to the default position category of the
given document. |
void
|
AnnotationModel.
connect
(
IDocument document)
|
void
|
IAnnotationModel.
connect
(
IDocument document)
Connects the annotation model to a document. |
void
|
AnnotationModel.
disconnect
(
IDocument document)
|
void
|
IAnnotationModel.
disconnect
(
IDocument document)
Disconnects this model from a document. |
IRegion
|
DefaultCharacterPairMatcher.
match
(
IDocument doc,
int offset)
|
IRegion
|
ICharacterPairMatcher.
match
(
IDocument iDocument,
int i)
Starting at the given offset, the matcher chooses a character close to this offset. |
protected void
|
AnnotationModel.
removePosition
(
IDocument document,
Position position)
Removes the given position from the default position category of the
given document. |
void
|
SourceViewer.
setDocument
(
IDocument document)
|
void
|
ISourceViewer.
setDocument
(
IDocument document,
IAnnotationModel annotationModel)
Sets the given document as this viewer's text model and the
given annotation model as the model for this viewer's visual
annotations. |
void
|
SourceViewer.
setDocument
(
IDocument document,
IAnnotationModel annotationModel)
|
void
|
ISourceViewer.
setDocument
(
IDocument document,
IAnnotationModel annotationModel,
int modelRangeOffset,
int modelRangeLength)
Sets the given document as this viewer's text model and the
given annotation model as the model for this viewer's visual
annotations. |
void
|
SourceViewer.
setDocument
(
IDocument document,
IAnnotationModel annotationModel,
int modelRangeOffset,
int modelRangeLength)
|
void
|
SourceViewer.
setDocument
(
IDocument document,
int visibleRegionOffset,
int visibleRegionLength)
|
protected void
|
SourceViewer.
updateSlaveDocuments
(
IDocument masterDocument)
Updates all slave documents of the given document. |
Methods in
org.eclipse.jface.text.templates with parameters of type
IDocument
|
void
|
TemplateProposal.
apply
(
IDocument document)
Deprecated. This method is no longer called by the framework and clients should overwrite
TemplateProposal.apply(ITextViewer, char, int, int) instead
|
void
|
TemplateProposal.
apply
(
IDocument document,
char trigger,
int offset)
Deprecated. This method is no longer called by the framework and clients should overwrite
TemplateProposal.apply(ITextViewer, char, int, int) instead
|
int
|
TemplateProposal.
getPrefixCompletionStart
(
IDocument document,
int completionOffset)
|
CharSequence
|
TemplateProposal.
getPrefixCompletionText
(
IDocument document,
int completionOffset)
|
Point
|
TemplateProposal.
getSelection
(
IDocument document)
|
boolean
|
TemplateProposal.
isValidFor
(
IDocument document,
int offset)
|
boolean
|
TemplateProposal.
validate
(
IDocument document,
int offset,
DocumentEvent event)
|
Methods in
org.eclipse.ui.editors.text with parameters of type
IDocument
|
protected void
|
TextFileDocumentProvider.
createFileFromDocument
(
IProgressMonitor monitor,
IFile file,
IDocument document)
Creates the given file with the given document content. |
protected
TextFileDocumentProvider.DocumentProviderOperation
|
TextFileDocumentProvider.
createSaveOperation
(
Object element,
IDocument document,
boolean overwrite)
|
protected void
|
StorageDocumentProvider.
doSaveDocument
(
IProgressMonitor monitor,
Object element,
IDocument document,
boolean overwrite)
|
protected void
|
FileDocumentProvider.
doSaveDocument
(
IProgressMonitor monitor,
Object element,
IDocument document,
boolean overwrite)
|
void
|
TextFileDocumentProvider.
saveDocument
(
IProgressMonitor monitor,
Object element,
IDocument document,
boolean overwrite)
|
void
|
TextFileDocumentProvider.NullProvider.
saveDocument
(
IProgressMonitor monitor,
Object element,
IDocument document,
boolean overwrite)
Deprecated. |
void
|
ForwardingDocumentProvider.
saveDocument
(
IProgressMonitor monitor,
Object element,
IDocument document,
boolean overwrite)
|
protected boolean
|
StorageDocumentProvider.
setDocumentContent
(
IDocument document,
IEditorInput editorInput)
Deprecated. use the encoding based version instead
|
protected boolean
|
FileDocumentProvider.
setDocumentContent
(
IDocument document,
IEditorInput editorInput)
Deprecated. use file encoding based version
|
protected boolean
|
StorageDocumentProvider.
setDocumentContent
(
IDocument document,
IEditorInput editorInput,
String encoding)
Initializes the given document from the given editor input using the given character encoding. |
protected boolean
|
FileDocumentProvider.
setDocumentContent
(
IDocument document,
IEditorInput editorInput,
String encoding)
|
protected void
|
StorageDocumentProvider.
setDocumentContent
(
IDocument document,
InputStream contentStream)
Deprecated. use encoding based version instead
|
protected void
|
StorageDocumentProvider.
setDocumentContent
(
IDocument document,
InputStream contentStream,
String encoding)
Initializes the given document with the given stream using the given encoding. |
protected void
|
StorageDocumentProvider.
setupDocument
(
Object element,
IDocument document)
Sets up the given document as it would be provided for the given element. |
Methods in
org.eclipse.ui.texteditor with parameters of type
IDocument
|
void
|
AbstractMarkerAnnotationModel.
commit
(
IDocument document)
|
void
|
TextViewerDeleteLineTarget.
deleteLine
(
IDocument document,
int offset,
int length,
int type,
boolean copyToClipboard)
|
void
|
TextViewerDeleteLineTarget.
deleteLine
(
IDocument document,
ITextSelection selection,
int type,
boolean copyToClipboard)
Deletes the lines that intersect with the given selection . |
protected abstract void
|
AbstractDocumentProvider.
doSaveDocument
(
IProgressMonitor monitor,
Object element,
IDocument document,
boolean overwrite)
Performs the actual work of saving the given document provided for the
given element. |
protected
String
|
MarkerRulerAction.
getLabelProposal
(
IDocument document,
int offset,
int length)
Returns the initial label for the marker. |
protected
String
|
AddMarkerAction.
getLabelProposal
(
IDocument document,
int offset,
int length)
Returns the initial label for the marker. |
protected int
|
AbstractTextEditor.LineEndAction.
getLineEndPosition
(
IDocument document,
String line,
int length,
int offset)
Computes the offset of the line end position. |
protected int
|
AbstractTextEditor.LineStartAction.
getLineStartPosition
(
IDocument document,
String line,
int length,
int offset)
Computes the offset of the line start position. |
protected boolean
|
MarkerRulerAction.
includesRulerLine
(
Position position,
IDocument document)
Checks whether a position includes the ruler's line of activity. |
protected boolean
|
SelectMarkerRulerAction.
includesRulerLine
(
Position position,
IDocument document)
Checks whether a position includes the ruler's line of activity. |
void
|
AbstractMarkerAnnotationModel.
reinitialize
(
IDocument document)
|
void
|
AbstractMarkerAnnotationModel.
revert
(
IDocument document)
|
void
|
IDocumentProvider.
saveDocument
(
IProgressMonitor monitor,
Object element,
IDocument document,
boolean overwrite)
Saves the given document provided for the given element. |
void
|
AbstractDocumentProvider.
saveDocument
(
IProgressMonitor monitor,
Object element,
IDocument document,
boolean overwrite)
|
boolean
|
AbstractMarkerAnnotationModel.
updateMarker
(
IDocument document,
IMarker marker,
Position position)
Updates the given marker according to the given position in the given
document. |
boolean
|
AbstractMarkerAnnotationModel.
updateMarker
(
IMarker marker,
IDocument document,
Position position)
Deprecated. use updateMarker(IDocument, IMarker, Position) instead. This method will be changed to protected.
|
boolean
|
BasicMarkerUpdater.
updateMarker
(
IMarker marker,
IDocument document,
Position position)
|
boolean
|
IMarkerUpdater.
updateMarker
(
IMarker marker,
IDocument document,
Position position)
Updates the given marker according to the position of the given document. |
void
|
AbstractMarkerAnnotationModel.
updateMarkers
(
IDocument document)
Updates the markers managed by this annotation model by calling
all registered marker updaters (IMarkerUpdater ). |
Methods in
org.eclipse.ui.texteditor.spelling with parameters of type
IDocument
|
void
|
ISpellingEngine.
check
(
IDocument document,
IRegion[] regions,
SpellingContext context,
ISpellingProblemCollector collector,
IProgressMonitor monitor)
Checks the given regions in the given document. |
void
|
SpellingService.
check
(
IDocument document,
IRegion[] regions,
SpellingContext context,
ISpellingProblemCollector collector,
IProgressMonitor monitor)
Checks the given regions in the given document. |
void
|
SpellingService.
check
(
IDocument document,
SpellingContext context,
ISpellingProblemCollector collector,
IProgressMonitor monitor)
Checks the given document. |
void
|
SpellingReconcileStrategy.
setDocument
(
IDocument document)
|
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.
|
|
|