⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 view2.java

📁 This a test for upload, so that I can download files here.
💻 JAVA
字号:
package cn.com.chengang;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;

public class View2 extends ViewPart {
	private Text text;

	@Override
	public void createPartControl(Composite parent) {
		Composite topComp=new Composite(parent, SWT.NONE);
		topComp.setLayout(new FillLayout());
		Text text=new Text(topComp, SWT.BORDER);
		text.setText("I am Text Border");
	}

	@Override
	public void setFocus() {
		// TODO Auto-generated method stub
		
	}
	public Text getText(){
		return text;
	}
	public void setText(Text text){
		this.text=text;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -