package _VisualDVM.ProjectData.SapforData.Functions.UI;
import Common.Visual.Menus.GraphMenu;
import Common.Visual.Trees.SelectableTree;
import Common.Visual.Trees.SelectionTreeCellRenderer;
import _VisualDVM.Current;
import _VisualDVM.Global;
import _VisualDVM.ProjectData.SapforData.FileObject;
public class InlineTree extends SelectableTree {
    public InlineTree() {
        super(Global.mainModule.getProject().inline_root);
    }
    @Override
    public Class getRendererClass() {
        return SelectionTreeCellRenderer.class;
    }
    @Override
    public Current currentName() {
        return Current.InlineGraphElement;
    }
    @Override
    public void ShowCurrentObject() {
        Object o = Global.mainModule.get(currentName());
        if (o instanceof FileObject) {
            ((FileObject) o).Show(false);
        }
    }
    @Override
    protected GraphMenu createMenu() {
        return new InlineMenu(this);
    }
    @Override
    protected int getStartLine() {
        return 1;
    }
}
