📄 anotherview.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 + -