Bug 81333 [GlobalActions] "Open Resource" dialog doesn't filters out class files?
Build 20041214-2000 1. Press ctrl+shift+r to open the "Open Resource" dialog. 2. Type the name of a class file in the workspace (for example, "Hello.class"). 3. The dialog does not show the class file, even though it exists. In my case, I did this with a simple "Hello World" program in the default package. Hello.java and Hello.class were in the same directory, but the dialog could only find Hello.java.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceListSelectionDialog.java
ResourceDescriptor desc = new ResourceDescriptor();
        desc.label = patternString.substring(0, patternString.length() - 1);
        while (high - low > 1) {
            int index = (high + low) / 2;
            String label = descriptors[index].label;
            if (match(label)) {
                high = index;
                match = true;
            } else {
                int compare = descriptors[index].compareTo(desc);
                if (compare == -1) {
                    low = index;
                } else {
                    high = index;
                }
            }
        }
        if (match)
            return high;
        else
            return -1;
    }
    /**
     */
    private void gatherResources() {
        String oldPattern = patternString;
        patternString = adjustPattern();
        if (patternString.equals(oldPattern))
            return;
        updateGatherThread.stop = true;