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

📄 editorpart.jvt

📁 SWT_designer安装软件
💻 JVT
字号:
import
org.eclipse.core.runtime.IProgressMonitor
org.eclipse.swt.SWT
org.eclipse.swt.layout.GridLayout
org.eclipse.swt.widgets.Composite
org.eclipse.ui.IEditorInput
org.eclipse.ui.IEditorSite
org.eclipse.ui.PartInitException
org.eclipse.ui.part.EditorPart

field
	public static final String ID = "%EDITOR_ID%"; //$NON-NLS-1$

method
	/**
	 * Create contents of the editor part
	 * @param parent
	 */
	@Override
	public void createPartControl(Composite parent) {
		Composite container = new Composite(parent, SWT.NONE);
		%SWTContainerLayout%
	}

method
	@Override
	public void setFocus() {
		// Set the focus
	}

method
	@Override
    public void doSave(IProgressMonitor monitor) {
    	// Do the Save operation
    }

method
	@Override
    public void doSaveAs() {
    	// Do the Save As operation
    }

method
	@Override
    public void init(IEditorSite site, IEditorInput input) throws PartInitException {
    	// Initialize the editor part
    }

method
	@Override
    public boolean isDirty() {
        return false;
    }

method
	@Override
    public boolean isSaveAsAllowed() {
        return false;
    }

⌨️ 快捷键说明

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