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.ui.ISharedImages;
14: import org.eclipse.ui.PlatformUI;
15: import org.eclipse.ui.tests.views.properties.tabbed.model.File;
16:
17: /**
18: * An item for when the File element is the selected element in the override
19: * tests view.
20: *
21: * @author Anthony Hunter
22: * @since 3.4
23: */
24: public class FileItem extends InformationItem {
25:
26: /*
27: * (non-Javadoc)
28: *
29: * @see org.eclipse.ui.tests.views.properties.tabbed.override.items.InformationItem#getElement()
30: */
31: public Class getElement() {
32: return File.class;
33: }
34:
35: /*
36: * (non-Javadoc)
37: *
38: * @see org.eclipse.ui.tests.views.properties.tabbed.override.items.InformationItem#getImage()
39: */
40: public Image getImage() {
41: return PlatformUI.getWorkbench().getSharedImages().getImage(
42: ISharedImages.IMG_OBJ_FILE);
43: }
44:
45: /*
46: * (non-Javadoc)
47: *
48: * @see org.eclipse.ui.tests.views.properties.tabbed.override.items.InformationItem#getText()
49: */
50: public String getText() {
51: return "File"; //$NON-NLS-1$
52: }
53: }
|