Package net.sf.rej.gui.structure

Examples of net.sf.rej.gui.structure.StructureNode


      AttributesNode an = (AttributesNode) aNode.getParent();
      Range range = getRange(an);
      Map<Object, Range> map = an.getAttributesObject().getOffsetMap(range.getOffset());
      return map.get(aNode.getAttributeObject());
    } else if (node instanceof AttributesNode) {
      StructureNode parent = (StructureNode) node.getParent();
      if (parent instanceof ClassFileNode) {
        return this.offsets.get(ClassFile.OffsetTag.ATTRIBUTES);
      } else if (parent instanceof MethodNode) {
        MethodNode mNode = (MethodNode) parent;
        Range parentRange = getRange(parent);
View Full Code Here


            return; // early return
          }
         
          Object obj = path.getLastPathComponent();
          if (obj instanceof StructureNode) {
            StructureNode sn = (StructureNode) obj;
            JPopupMenu menu = sn.getContextMenu();
            if (menu != null) {
              menu.show(tree, me.getX(), me.getY());
            }
          }
        }
View Full Code Here

    }
   
    public void refresh() {
    if (this.cf != null) {
      StructureNode root = new ClassFileNode(this.cf);
      this.tree.setModel(new DefaultTreeModel(root));
      this.offsets = this.cf.getOffsetMap();
      if (this.sync != null) {
        this.sync.setOffsets(this.offsets);
        splitSynchronize();
View Full Code Here

 
  private void splitSynchronize() {
    if (this.sync != null && isOpen) {
      TreePath path = this.tree.getSelectionPath();
      if (path != null) {
        StructureNode node = (StructureNode) path.getLastPathComponent();
        this.sync.sync(node);
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.rej.gui.structure.StructureNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.