01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.texteditor;
11:
12: import org.eclipse.swt.graphics.Image;
13:
14: /**
15: * Interface of a status field of a text editor. The field that shows up in the
16: * workbench's status line if the contributing editor is active.
17: * <p>
18: * In order to provided backward compatibility for clients of
19: * <code>IStatusField</code>, extension interfaces are used to provide a
20: * means of evolution. The following extension interface exists:
21: * <ul>
22: * <li>{@link org.eclipse.ui.texteditor.IStatusFieldExtension} since
23: * version 3.0 introducing error text, tooltips and visibility control.</li>
24: * </ul>
25: * </p>
26: *
27: * @see org.eclipse.ui.texteditor.IStatusFieldExtension
28: * @since 2.0
29: */
30: public interface IStatusField {
31:
32: /**
33: * Sets the text of this status field.
34: *
35: * @param text the text shown in the status field
36: */
37: void setText(String text);
38:
39: /**
40: * Sets the image of this status field.
41: *
42: * @param image the image shown in the status field
43: */
44: void setImage(Image image);
45: }
|