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.console
Interface IConsoleDocumentPartitioner

All Superinterfaces:
IDocumentPartitioner

public interface IConsoleDocumentPartitioner
extends IDocumentPartitioner

A document partitioner for a text console.

In addition to regular partitioner duties, a console document partitioner dictates which regions in its document are read-only and provides style ranges.

Clients may implement this interface.

Since:
3.1
See Also:
TextConsole

Method Summary
  StyleRange[] getStyleRanges (int offset, int length)
          Returns style ranges for the specified region of this partitioner's document to use when rendering, or null if none.
 boolean isReadOnly (int offset)
          Returns whether this partitioner's document is read-only at the specified offset.
 
Methods inherited from interface org.eclipse.jface.text. IDocumentPartitioner
computePartitioning, connect, disconnect, documentAboutToBeChanged, documentChanged, getContentType, getLegalContentTypes, getPartition
 

Method Detail

isReadOnly

boolean isReadOnly(int offset)
Returns whether this partitioner's document is read-only at the specified offset. The user is not allowed to type in read-only locations.

Parameters:
offset - document offset
Returns:
whether this partitioner's document is read-only at the specified offset

getStyleRanges

StyleRange[] getStyleRanges(int offset,
                            int length)
Returns style ranges for the specified region of this partitioner's document to use when rendering, or null if none.

Parameters:
offset - beginning offset for which style ranges are requested
length - the length of text for which style ranges are requested
Returns:
style ranges for the specified region of this partitioner's document to use when rendering, or null if none

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