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.tests.performance.parts;
11:
12: import org.eclipse.swt.SWT;
13: import org.eclipse.swt.widgets.Composite;
14: import org.eclipse.swt.widgets.Label;
15: import org.eclipse.ui.part.ViewPart;
16:
17: /**
18: * @since 3.1
19: */
20: public class PerformanceViewPart extends ViewPart {
21:
22: private Label control;
23:
24: /**
25: *
26: */
27: public PerformanceViewPart() {
28: super ();
29: }
30:
31: /* (non-Javadoc)
32: * @see org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
33: */
34: public void createPartControl(Composite parent) {
35: control = new Label(parent, SWT.NONE);
36: }
37:
38: /* (non-Javadoc)
39: * @see org.eclipse.ui.IWorkbenchPart#setFocus()
40: */
41: public void setFocus() {
42: control.setFocus();
43: }
44:
45: }
|