Package org.netbeans.modules.web.stripes.util.browse

Source Code of org.netbeans.modules.web.stripes.util.browse.ActionBeansFilter

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package org.netbeans.modules.web.stripes.util.browse;

import java.io.File;
import java.io.FileFilter;
import org.netbeans.api.java.source.JavaSource;
import org.openide.filesystems.FileObject;
import org.openide.filesystems.FileUtil;

/**
* This filter accepts all files representing Stripes Action Bean class.
* @author Josef Sustacek
*/
public class ActionBeansFilter implements FileFilter {

    // TODO
    @Override
    public boolean accept(File file) {
        FileObject fileFO = FileUtil.toFileObject(file);
        JavaSource javaSource = JavaSource.forFileObject(fileFO);
       
       
        return file.isFile() &&
                "java".equals(fileFO.getExt()) &&
                true;
    }

}
TOP

Related Classes of org.netbeans.modules.web.stripes.util.browse.ActionBeansFilter

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.