chinaeditorinput.java
来自「This a test for upload, so that I can do」· Java 代码 · 共 42 行
JAVA
42 行
package cn.com.chengang;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
public class ChinaEditorInput implements IEditorInput {
public boolean exists() {
// TODO Auto-generated method stub
return true;//if this will exist in the "Recent Doc" under File Menu
}
public ImageDescriptor getImageDescriptor() {
return PlatformUI.getWorkbench()
.getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_NEW_WIZARD);//
}
public String getName() {
// TODO Auto-generated method stub
return "Chinese Editor";
}
public IPersistableElement getPersistable() {
// TODO Auto-generated method stub
return null;
}
public String getToolTipText() {
// TODO Auto-generated method stub
return "China Tip";
}
public Object getAdapter(Class adapter) {
// TODO Auto-generated method stub
return null;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?