01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 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.jface.text;
11:
12: import org.eclipse.swt.widgets.Shell;
13:
14: /**
15: * Interface of a factory for information controls (
16: * {@link org.eclipse.jface.text.IInformationControl}).
17: *
18: * In order to provide backward compatibility for clients of
19: * <code>IInformationControlCreator</code>, extension interfaces are used as
20: * a means of evolution. The following extension interfaces exist:
21: * <ul>
22: * <li>{@link org.eclipse.jface.text.IInformationControlCreatorExtension} since
23: * version 3.0 introducing checks of whether existing information control can
24: * be reused and whether information control creators can replace each other.
25: * </li>
26: * </ul>
27: *
28: * @see org.eclipse.jface.text.IInformationControlCreatorExtension
29: * @since 2.0
30: */
31: public interface IInformationControlCreator {
32:
33: /**
34: * Creates a new information control with the given shell as the control's parent.
35: *
36: * @param parent the parent shell
37: * @return the created information control
38: */
39: IInformationControl createInformationControl(Shell parent);
40: }
|