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

📄 anotherview.java

📁 基于JAVA RCP的应用, 在代码中可以学习到editor, view, perspective的使用, 和插件的配置管理
💻 JAVA
字号:
package com.fengmanfei.myrcp.views;

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

public class AnotherView extends ViewPart {
	private Text text;//文本框
	public static final String ID = "com.fengmanfei.myrcp.views.AnotherView";
	public AnotherView() {
		super();
	}
	public void createPartControl(Composite parent) {
		text = new Text(parent, SWT.NONE);
	}
	public void setFocus() {
		text.setFocus();
	}
	//设置文本框的内容
	public void setContent(String content) {
		text.setText(content);
	}
}

⌨️ 快捷键说明

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