01: /*******************************************************************************
02: * Copyright (c) 2004, 2005 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.examples.components.views.comparisons;
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: * Test "hello world" view using the old API
19: *
20: * @since 3.1
21: */
22: public class HelloWorldViewOld extends ViewPart {
23:
24: public void createPartControl(Composite parent) {
25: Label helloWorld = new Label(parent, SWT.NONE);
26: helloWorld.setText("Hello world");
27: }
28:
29: public void setFocus() {
30:
31: }
32:
33: }
|