01: /*******************************************************************************
02: * Copyright (c) 2007 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.tests.views.properties.tabbed.override.items;
11:
12: import org.eclipse.swt.graphics.Image;
13: import org.eclipse.swt.widgets.Composite;
14:
15: /**
16: * Interface for an item used by the properties view for the override tabs
17: * tests.
18: * <p>
19: * When the TabbedPropertySheetPage is used by the OverrideTestsView tests view,
20: * each item is displayed in a ISection.
21: * <p>
22: * The OverrideTestsTabFolderPropertySheetPage example uses the items to display
23: * in TabFolder/TabItem.
24: *
25: * @author Anthony Hunter
26: * @since 3.4
27: */
28: public interface IOverrideTestsItem {
29:
30: /**
31: * Creates the controls for the item.
32: *
33: * @param parent
34: * the parent composite for the item.
35: * @param factory
36: * the factory to create widgets for the item.
37: */
38: public void createControls(Composite parent);
39:
40: /**
41: * Dispose the controls for the item.
42: */
43: public void dispose();
44:
45: /**
46: * Get the root composite for the item.
47: *
48: * @return the root composite for the item.
49: */
50: public Composite getComposite();
51:
52: /**
53: * Get the kind of {@link Element} that this item applies to.
54: *
55: * @return the kind of {@link Element} that this item applies to.
56: */
57: public Class getElement();
58:
59: /**
60: * Get the icon image for the item.
61: *
62: * @return the icon image for the item.
63: */
64: public Image getImage();
65:
66: /**
67: * Get the text label for the item.
68: *
69: * @return the text label for the item.
70: */
71: public String getText();
72: }
|