org.eclipse.jface.text.IRewriteTarget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotless-ext-greclipse Show documentation
Show all versions of spotless-ext-greclipse Show documentation
Groovy Eclipse's formatter bundled for Spotless
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jface.text;
/**
* A target publishing the required functions to modify a document that is displayed
* in a text viewer. It provides access to the document and control
* over the redraw behavior and the grouping of document changes into undo commands.
*
* @see org.eclipse.jface.text.ITextViewer
* @see org.eclipse.jface.text.IDocument
* @see org.eclipse.jface.text.IUndoManager
* @since 2.0
*/
public interface IRewriteTarget {
/**
* Returns the document of this target.
*
* @return the document of this target
*/
IDocument getDocument();
/**
* Disables/enables redrawing while modifying the target's document.
*
* @param redraw true
if the document's visible presentation
* should be updated, false
otherwise
*/
void setRedraw(boolean redraw);
/**
* If an undo manager is connected to the document's visible presentation,
* this method tells the undo manager to fold all subsequent changes into
* one single undo command until endCompoundChange
is called.
*/
void beginCompoundChange();
/**
* If an undo manager is connected to the document's visible presentation,
* this method tells the undo manager to stop the folding of changes into a
* single undo command. After this call, all subsequent changes are
* considered to be individually undo-able.
*/
void endCompoundChange();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy