All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.jface.text.IDocumentPartitionerExtension Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.jface.text;


/**
 * Extension interface for {@link org.eclipse.jface.text.IDocumentPartitioner}.
 * 

* Replaces the original concept of the document partitioner by returning the * minimal region that includes all partition changes caused by the invocation * of the document partitioner. * The method documentChanged2 is considered the replacement of * {@link org.eclipse.jface.text.IDocumentPartitioner#documentChanged(DocumentEvent)}. * * @since 2.0 */ public interface IDocumentPartitionerExtension { /** * The document has been changed. The partitioner updates the document's * partitioning and returns the minimal region that comprises all partition * changes caused in response to the given document event. This method * returns null if the partitioning did not change. *

* * Will be called by the connected document and is not intended to be used * by clients other than the connected document. *

* Replaces {@link IDocumentPartitioner#documentChanged(DocumentEvent)}. * * @param event the event describing the document change * @return the region of the document in which the partition type changed or null */ IRegion documentChanged2(DocumentEvent event); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy