Package org.netbeans.modules.php.fuel.ui.actions

Examples of org.netbeans.modules.php.fuel.ui.actions.FuelPhpControllerVisitor


    @Override
    protected void scan(PhpModule phpModule, FileObject currentFile, int offset) {
        reset();

        // scan
        final FuelPhpControllerVisitor visitor = new FuelPhpControllerVisitor(currentFile, offset);
        try {
            scanController(visitor, currentFile);
        } catch (ParseException ex) {
            Exceptions.printStackTrace(ex);
        }

        // set view items
        Set<String> viewModelPath = visitor.getViewModelPath();
        Set<String> viewPath = visitor.getViewPath();
        if (!viewModelPath.isEmpty()) {
            viewPath.addAll(viewModelPath);
        }
        setGoToItems(viewPath, FILE_TYPE.VIEW, false);
        setGoToItems(visitor.getAllViewPath(), FILE_TYPE.VIEW, true);
        setGoToItems(viewModelPath, FILE_TYPE.VIEW_MODEL, false);
        setGoToItems(visitor.getAllViewModelPath(), FILE_TYPE.VIEW_MODEL, true);

        // sort
        sort(viewItems);
        sort(viewModelItems);
        sort(allViewItems);
View Full Code Here

TOP

Related Classes of org.netbeans.modules.php.fuel.ui.actions.FuelPhpControllerVisitor

Copyright © 2018 www.massapicom. 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.