comparison dwtx/jface/text/IDocumentExtension3.d @ 141:ea8dd2e11034

instanceof and throws
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 21:25:28 +0200
parents 93a6ec48fd28
children
comparison
equal deleted inserted replaced
140:26688fec6d23 141:ea8dd2e11034
224 * closed partition starting at <code>offset</code> 224 * closed partition starting at <code>offset</code>
225 * @return the partition type 225 * @return the partition type
226 * @exception BadLocationException if offset is invalid in this document 226 * @exception BadLocationException if offset is invalid in this document
227 * @exception BadPartitioningException if partitioning is invalid for this document 227 * @exception BadPartitioningException if partitioning is invalid for this document
228 */ 228 */
229 String getContentType(String partitioning, int offset, bool preferOpenPartitions) throws BadLocationException, BadPartitioningException; 229 String getContentType(String partitioning, int offset, bool preferOpenPartitions);
230 230
231 /** 231 /**
232 * Returns the document partition of the given partitioning in which the 232 * Returns the document partition of the given partitioning in which the
233 * given offset is located. 233 * given offset is located.
234 * <p> 234 * <p>
250 * closed partition starting at <code>offset</code> 250 * closed partition starting at <code>offset</code>
251 * @return a specification of the partition 251 * @return a specification of the partition
252 * @exception BadLocationException if offset is invalid in this document 252 * @exception BadLocationException if offset is invalid in this document
253 * @exception BadPartitioningException if partitioning is invalid for this document 253 * @exception BadPartitioningException if partitioning is invalid for this document
254 */ 254 */
255 ITypedRegion getPartition(String partitioning, int offset, bool preferOpenPartitions) throws BadLocationException, BadPartitioningException; 255 ITypedRegion getPartition(String partitioning, int offset, bool preferOpenPartitions);
256 256
257 /** 257 /**
258 * Computes the partitioning of the given document range based on the given 258 * Computes the partitioning of the given document range based on the given
259 * partitioning type. 259 * partitioning type.
260 * <p> 260 * <p>
275 * partitions should be returned as part of the computed partitioning 275 * partitions should be returned as part of the computed partitioning
276 * @return a specification of the range's partitioning 276 * @return a specification of the range's partitioning
277 * @exception BadLocationException if the range is invalid in this document$ 277 * @exception BadLocationException if the range is invalid in this document$
278 * @exception BadPartitioningException if partitioning is invalid for this document 278 * @exception BadPartitioningException if partitioning is invalid for this document
279 */ 279 */
280 ITypedRegion[] computePartitioning(String partitioning, int offset, int length, bool includeZeroLengthPartitions) throws BadLocationException, BadPartitioningException; 280 ITypedRegion[] computePartitioning(String partitioning, int offset, int length, bool includeZeroLengthPartitions);
281 281
282 /** 282 /**
283 * Sets this document's partitioner. The caller of this method is responsible for 283 * Sets this document's partitioner. The caller of this method is responsible for
284 * disconnecting the document's old partitioner from the document and to 284 * disconnecting the document's old partitioner from the document and to
285 * connect the new partitioner to the document. Informs all document partitioning 285 * connect the new partitioner to the document. Informs all document partitioning