KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > themes > IThemePreview


1 /*******************************************************************************
2  * Copyright (c) 2004, 2006 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.ui.themes;
12
13 import org.eclipse.swt.widgets.Composite;
14
15 /**
16  * Interface used by theme element developers to preview the usage of their
17  * elements within the colors and fonts preference page.
18  *
19  * @since 3.0
20  */

21 public interface IThemePreview {
22
23     /**
24      * Create the preview control.
25      *
26      * @param parent the Composite in which to create the example
27      * @param currentTheme the theme to preview
28      */

29     void createControl(Composite parent, ITheme currentTheme);
30
31     /**
32      * Dispose of resources used by this previewer. This method is called by
33      * the workbench when appropriate and should never be called by a user.
34      */

35     void dispose();
36 }
37
Popular Tags