Examples of OffListElement


Examples of net.sickill.off.common.OffListElement

    @Test
    public void testLabel() {
        // README
        // lib/tags.rb
        // app/models/user_topic.rb
        OffListElement ole;

        model.setFilter("readme");
        model.refilter();
        ole = (OffListElement)model.getElementAt(0);
        ole.getFilename();
//        assertTrue(Pattern.matches("^README$", ole.getLabel()));

        model.setFilter("tags");
        model.refilter();
        ole = (OffListElement)model.getElementAt(0);
        ole.getFilename();
//        assertTrue(Pattern.matches("^tags\\.rb\\s\\[lib\\]$", ole.getLabel()));

        model.setFilter("user_topic");
        model.refilter();
        ole = (OffListElement)model.getElementAt(0);
        ole.getFilename();
//      assertTrue(Pattern.matches("^user_topic\\.rb\\s\\[app\\/models\\]$", ole.getLabel()));

        String[] filters = { "a/m/", "a/m/u" };
        for (String f : filters) {
            model.setFilter(f);
            model.refilter();
            ole = (OffListElement)model.getElementAt(0);
            ole.getFilename();
        }
//      assertTrue(Pattern.matches("^user_topic\\.rb\\s\\[app\\/models\\]$", ole.getLabel()));
    }
View Full Code Here

Examples of net.sickill.off.common.OffListElement

        }
        return null;
    }

    private boolean elementNameMatches(int index, String name) {
        OffListElement ole = (OffListElement)model.getElementAt(index);
        return ole.getFile().getName().equals(name);
    }
View Full Code Here

Examples of net.sickill.off.common.OffListElement

        OffListElement ole = (OffListElement)model.getElementAt(index);
        return ole.getFile().getName().equals(name);
    }

    private boolean elementPathMatches(int index, String path) {
        OffListElement ole = (OffListElement)model.getElementAt(index);
        return ole.getFile().getPathInProject().equals(path);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.