全部文本 #4750 原始 编辑

Eclipse plugin

公开 java v1 · 不可变
·已发布 2005-01-26 12:11 UTC
渲染后的文本正文
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.	}}