Package org.netbeans.modules.php.fuel.options

Examples of org.netbeans.modules.php.fuel.options.FuelPhpOptions


     * Set default config to config.php.
     *
     * @param config config.php
     */
    private void setDefaultConfig(FileObject config) {
        FuelPhpOptions options = FuelPhpOptions.getInstance();

        if (options.isDefaultConfig()) {
            try {
                // write
                OutputStream outputStream = config.getOutputStream();
                PrintWriter pw = new PrintWriter(new OutputStreamWriter(outputStream, "UTF-8"), true); // NOI18N
                try {
                    pw.write(options.getDefaultConfig());
                } finally {
                    pw.close();
                }
            } catch (FileAlreadyLockedException ex) {
                Exceptions.printStackTrace(ex);
View Full Code Here


        if (config == null) {
            return;
        }

        // set text to options
        FuelPhpOptions options = FuelPhpOptions.getInstance();
        try {
            options.setDefaultConfig(config.asText("UTF-8")); // NOI18N

            // open dialog
            NotifyDescriptor descriptor = new NotifyDescriptor(
                    "Success : Set source code of config.php to Options",
                    getPureName(),
View Full Code Here

        }

        @Override
        public List<Node> keys() {
            if (FuelUtils.isFuelPHP(phpModule)) {
                FuelPhpOptions options = FuelPhpOptions.getInstance();
                List<String> availableNodes = options.getAvailableNodes();
                List<Node> list = new ArrayList<Node>();

                for (String node : availableNodes) {
                    FileObject rootNode = getRootNode(node);
                    if (rootNode == null) {
View Full Code Here

TOP

Related Classes of org.netbeans.modules.php.fuel.options.FuelPhpOptions

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.