01: /*******************************************************************************
02: * Copyright (c) 2004, 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.ui.themes;
11:
12: import org.eclipse.swt.widgets.Composite;
13:
14: /**
15: * Interface used by theme element developers to preview the usage of their
16: * elements within the colors and fonts preference page.
17: *
18: * @since 3.0
19: */
20: public interface IThemePreview {
21:
22: /**
23: * Create the preview control.
24: *
25: * @param parent the Composite in which to create the example
26: * @param currentTheme the theme to preview
27: */
28: void createControl(Composite parent, ITheme currentTheme);
29:
30: /**
31: * Dispose of resources used by this previewer. This method is called by
32: * the workbench when appropriate and should never be called by a user.
33: */
34: void dispose();
35: }
|