diff options
Diffstat (limited to 'experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/ITextPresentationListener.java')
-rw-r--r-- | experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/ITextPresentationListener.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/ITextPresentationListener.java b/experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/ITextPresentationListener.java new file mode 100644 index 000000000..839c87477 --- /dev/null +++ b/experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/ITextPresentationListener.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * 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; + + +/** + * Text presentation listeners registered with an + * {@link org.eclipse.jface.text.ITextViewer} are informed when a + * {@link org.eclipse.jface.text.TextPresentation} is about to be applied to the + * text viewer. The listener can apply changes to the text presentation and thus + * participate in the process of text presentation creation. + * + * @since 3.0 + */ +public interface ITextPresentationListener { + + /** + * This method is called when a text presentation is about to be applied to + * the text viewer. The receiver is allowed to change the text presentation + * during that call. + * + * @param textPresentation the current text presentation + */ + public void applyTextPresentation(TextPresentation textPresentation); +} |