Bug 97313 Java search filters dialog does not honor dialog font settings [search]
3.1 RC1
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/FiltersDialog.java
fMaxCallDepth.setSelection(0, fMaxCallDepth.getCharCount());
                fMaxCallDepth.showSelection();
            }
        }
        
        updateFilterFromUI();
        super.okPressed();
    }
    private boolean isMaxCallDepthValid() {
        String text= fMaxCallDepth.getText();
        if (text.length() == 0)
            return false;
            
        try {
            int maxCallDepth= Integer.parseInt(text);
            return (maxCallDepth >= 1 && maxCallDepth <= 99); 
        } catch (NumberFormatException e) {
            return false;
        }           
    }
    
    private void validateInput() {
        StatusInfo status= new StatusInfo();
        if (!isMaxCallDepthValid()) {
            status.setError(CallHierarchyMessages.FiltersDialog_messageMaxCallDepthInvalid); 
        }
        updateStatus(status);
    }
}