Package jadx.gui.treemodel

Examples of jadx.gui.treemodel.JNode


  }

  private void treeClickAction() {
    Object obj = tree.getLastSelectedPathComponent();
    if (obj instanceof JNode) {
      JNode node = (JNode) obj;
      JClass cls = node.getRootClass();
      if (cls != null) {
        tabbedPane.showCode(new Position(cls, node.getLine()));
      }
    }
  }
View Full Code Here


  private void openSelectedItem() {
    int selectedId = resultsList.getSelectedIndex();
    if (selectedId == -1) {
      return;
    }
    JNode node = (JNode) resultsModel.get(selectedId);
    tabbedPane.showCode(new Position(node.getRootClass(), node.getLine()));

    dispose();
  }
View Full Code Here

    public Component getListCellRendererComponent(JList list,
                                                  Object obj, int index, boolean isSelected, boolean cellHasFocus) {
      if (!(obj instanceof JNode)) {
        return null;
      }
      JNode value = (JNode) obj;
      JLabel label = new JLabel();
      label.setOpaque(true);
      label.setIcon(value.getIcon());
      label.setText(value.makeLongString());
      if (isSelected) {
        label.setBackground(selectedBackground);
        label.setForeground(selectedForeground);
      }
      return label;
View Full Code Here

TOP

Related Classes of jadx.gui.treemodel.JNode

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.