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

📄 outlinenode.java

📁 jboss规则引擎
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -