outlinenode.java
来自「jboss规则引擎」· Java 代码 · 共 47 行
JAVA
47 行
package org.drools.ide.editors.outline;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.model.IWorkbenchAdapter;
/**
* This represents a node that is shown in the outline.
*
* @author Michael Neale
*/
public abstract class OutlineNode implements
IWorkbenchAdapter,
IAdaptable {
private int offset;
private int length;
/** The offset (in chars) to jump to */
public int getOffset() {
return offset;
}
/** return the length of selection */
public int getLength() {
return length;
}
public void setLength(int length) {
this.length = length;
}
public void setOffset(int offset) {
this.offset = offset;
}
public Object getAdapter(Class adapter) {
if ( adapter == IWorkbenchAdapter.class ) {
return this;
}
return null;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?