KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Extension interface for {@link org.eclipse.jface.text.IInformationControlCreator}<p>
15  * Introduces tests whether information controls can be reused and whether information
16  * control creators can replace each other.
17  *
18  * @see org.eclipse.jface.text.IInformationControlCreator
19  * @see org.eclipse.jface.text.IInformationControl
20  * @since 3.0
21  */

22 public interface IInformationControlCreatorExtension {
23
24     /**
25      * Tests if an existing information control can be reused.
26      *
27      * @param control the information control to test
28      * @return <code>true</code> if the control can be reused
29      */

30     boolean canReuse(IInformationControl control);
31
32     /**
33      * Tests whether this information control creator can replace the given
34      * information control creator. This is the case if the two creators create
35      * the same kind of information controls.
36      *
37      * @param creator the creator to be checked
38      * @return <code>true</code> if the given creator can be replaced,
39      * <code>false</code> otherwise
40      */

41     boolean canReplace(IInformationControlCreator creator);
42 }
43
Popular Tags