Package net.sf.rej.gui.compare

Examples of net.sf.rej.gui.compare.FileItem


                    int row, boolean hasFocus) {
                // customize color
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
                Object obj = node.getUserObject();
                if (obj instanceof FileItem) {
                  FileItem fileItem = (FileItem) obj;
                  switch (fileItem.getStyle()) {
            case PLAIN:
              this.leafIcon = leafPlain;
              break;             
            case RED:
              this.leafIcon = leafRed;
View Full Code Here


        Object userObj = node.getUserObject();

        if (e.getClickCount() == 2
                && e.getModifiers() == InputEvent.BUTTON1_MASK) {
            if (userObj instanceof FileItem) {
              FileItem ca =(FileItem)userObj;
              if (ca.getFullNameA().endsWith(".class")
               && ca.getFullNameB().endsWith(".class")
               && ca.getStyle() != Style.RED
               && ca.getStyle() != Style.YELLOW) {
                this.selectedItem = ca;
                try {
                  byte[] dataA = this.filesetA.getData(ca.getFullNameA());
                  byte[] dataB = this.filesetB.getData(ca.getFullNameB());

                  ClassFile cfA = Disassembler.readClass(dataA);
                  ClassFile cfB = Disassembler.readClass(dataB);
                  this.comparePanel.setClassFiles(cfA, cfB);
                  this.tabbedPane.setSelectedComponent(this.comparePanel);
View Full Code Here

        Enumeration en = root.breadthFirstEnumeration();
        while (en.hasMoreElements()) {
          DefaultMutableTreeNode node = (DefaultMutableTreeNode) en.nextElement();
          Object obj = node.getUserObject();
          if (obj instanceof FileItem) {
            FileItem fileItem = (FileItem) obj;
            String filename = fileItem.getFullNameA();
            if (this.lastSearch.matches(filename)) {
              Object[] path = { root, node.getParent(), node };
              TreePath tp = new TreePath(path);
              tree.setSelectionPath(tp);
              tree.startEditingAtPath(tp);
View Full Code Here

              }
              continue;
            }
            Object obj = node.getUserObject();
            if (obj instanceof FileItem) {
              FileItem fileItem = (FileItem) obj;
              String filename = fileItem.getFullNameA();
              if (this.lastSearch.matches(filename)) {
                Object[] path = {this.root, node.getParent(), node};
                TreePath tp = new TreePath(path);
                tree.setSelectionPath(tp);
                tree.startEditingAtPath(tp);
View Full Code Here

TOP

Related Classes of net.sf.rej.gui.compare.FileItem

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.