package com.example.helloworld;import org.eclipse.swt.widgets.Composite;import org.eclipse.swt.widgets.Label;import org.eclipse.swt.SWT;import org.eclipse.ui.part.ViewPart;public class HelloWorldView extends ViewPart { Label label; public HelloWorldView() { } public void createPartControl(Composite parent) { label = new Label(parent, SWT.WRAP); System.out.println("Bletch bar foo ..."); label.setText("Hello World"); System.err.println("Foo bar bletch ..."); } public void setFocus() { // set focus to my widget. For a label, this doesn't // make much sense, but for more complex sets of widgets // you would decide which one gets the focus. }}