KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > ITextPresentationListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jface.text;
12
13
14 /**
15  * Text presentation listeners registered with an
16  * {@link org.eclipse.jface.text.ITextViewer} are informed when a
17  * {@link org.eclipse.jface.text.TextPresentation} is about to be applied to the
18  * text viewer. The listener can apply changes to the text presentation and thus
19  * participate in the process of text presentation creation.
20  *
21  * @since 3.0
22  */

23 public interface ITextPresentationListener {
24
25     /**
26      * This method is called when a text presentation is about to be applied to
27      * the text viewer. The receiver is allowed to change the text presentation
28      * during that call.
29      *
30      * @param textPresentation the current text presentation
31      */

32     public void applyTextPresentation(TextPresentation textPresentation);
33 }
34
Popular Tags