Examples of SearchPattern


Examples of org.eclipse.ui.dialogs.SearchPattern

        }
        List<String> moduleParts = StringUtils.splitAndRemoveEmptyTrimmed(declaringModuleName, '.');

        while (split.size() > 1) {
            String head = split.remove(0);
            SearchPattern headPattern = new SearchPattern();
            headPattern.setPattern(head);
            if (moduleParts.size() == 0) {
                return false; //we cannot match it anymore
            }
            if (!headPattern.matches(moduleParts.remove(0))) {
                return false;
            }
        }
        //if it got here, we've matched the module correctly... let's go on and check the name.

        SearchPattern tailPattern = new SearchPattern();
        tailPattern.setPattern(split.get(0));
        return tailPattern.matches(info.getName());
    }
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.