- 介绍
看着现有的编辑器有缺陷?想扩展不知道该从哪里下手?请看下文。
- 添加扩展点
[codesyntax lang="xml"]
<extension point="org.eclipse.ui.editors"> <editor name="Bundle Editor" extensions="bundle" icon="icons/bird.gif" contributorClass="org.eclipse.ui.part.EditorActionBarContributor" class="org.suren.littlebird.editors.BundleEditor" id="org.suren.littlebird.editors.BundleEditor"> </editor> </extension>
[/codesyntax]
- 编辑器实现类
[codesyntax lang="java"]
/** * @author http://surenpi.com * @date 2015年7月16日 */ package org.suren.littlebird.editors; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.TabFolder; import org.ec