diff options
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/CCodeFileFilter.java')
-rw-r--r-- | systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/CCodeFileFilter.java | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/CCodeFileFilter.java b/systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/CCodeFileFilter.java index 552887cd70..100541dfcf 100644 --- a/systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/CCodeFileFilter.java +++ b/systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/CCodeFileFilter.java @@ -15,40 +15,40 @@ import java.io.File; import java.io.FileFilter; public class CCodeFileFilter implements FileFilter { - /** - * Checks a file type and only passes it (returns true) if it is either a directory, a .c, or a .h - * file type. - * - * @param f The file to check. - * - * @return A boolean value indicating whether or not to display the file. - */ - @Override - public boolean accept(File f) { - if(null == f) - return false; - return accept(f.getName(), f.isDirectory()); - } + /** + * Checks a file type and only passes it (returns true) if it is either a directory, a .c, or a .h + * file type. + * + * @param f The file to check. + * + * @return A boolean value indicating whether or not to display the file. + */ + @Override + public boolean accept(File f) { + if(null == f) + return false; + return accept(f.getName(), f.isDirectory()); + } - /** - * Checks a file type and only passes it (returns true) if it is either a directory, a .c, or a .h - * file type. - * - * @param name The name of the file - * @param isDir Is this file a directory? - * - * @return A boolean value indicating whether or not to display the file. - * - * @since 1.1 - */ - public boolean accept(String name, boolean isDir) { - String lower = name.toLowerCase(); - return isDir || - lower.endsWith(".c") || //$NON-NLS-1$ - lower.endsWith(".h"); //$NON-NLS-1$ - } + /** + * Checks a file type and only passes it (returns true) if it is either a directory, a .c, or a .h + * file type. + * + * @param name The name of the file + * @param isDir Is this file a directory? + * + * @return A boolean value indicating whether or not to display the file. + * + * @since 1.1 + */ + public boolean accept(String name, boolean isDir) { + String lower = name.toLowerCase(); + return isDir || + lower.endsWith(".c") || //$NON-NLS-1$ + lower.endsWith(".h"); //$NON-NLS-1$ + } - public String getDescription() { - return ".c, .h files"; //$NON-NLS-1$ - } + public String getDescription() { + return ".c, .h files"; //$NON-NLS-1$ + } } |