Package org.netbeans.modules.php.wordpress.ui.options

Examples of org.netbeans.modules.php.wordpress.ui.options.WordPressOptions


    @NbBundle.Messages("WordPressModule.get.commands=Getting wp-cli commands...")
    @Override
    public void restored() {
        super.restored();
        WordPressOptions options = WordPressOptions.getInstance();
        String wpCliPath = options.getWpCliPath();
        if (!StringUtils.isEmpty(wpCliPath) && options.getWpCliGetCommandsOnBoot()) {
            RequestProcessor.getDefault().post(new Runnable() {

                @Override
                public void run() {
                    ProgressHandle handle = ProgressHandleFactory.createHandle(Bundle.WordPressModule_get_commands());
View Full Code Here


        } else if (panel.useWpCli()) {
            try {
                // params
                ArrayList<String> params = new ArrayList<String>(2);
                WordPressOptions options = WordPressOptions.getInstance();
                String locale = options.getWpCliDownloadLocale();
                if (!StringUtils.isEmpty(locale)) {
                    params.add(String.format(WordPressCli.LOCALE_PARAM, locale));
                }
                String version = options.getWpCliDownloadVersion();
                if (!StringUtils.isEmpty(version)) {
                    params.add(String.format(WordPressCli.VERSION_PARAM, version));
                }

                // run
View Full Code Here

    private boolean hasUpgrade = false;
    private ArrayList<UpdateItem> items;

    @Override
    public boolean hasUpgrade(PhpModule phpModule) {
        WordPressOptions options = WordPressOptions.getInstance();
        if (StringUtils.isEmpty(options.getWpCliPath()) || !options.isCheckThemeNewVersion()) {
            return false;
        }
        for (UpdateItem item : getUpdateItems(phpModule)) {
            if (item.isUpdate()) {
                hasUpgrade = true;
View Full Code Here

    private boolean hasUpgrade = false;
    private ArrayList<UpdateItem> items;

    @Override
    public boolean hasUpgrade(PhpModule phpModule) {
        WordPressOptions options = WordPressOptions.getInstance();
        if (StringUtils.isEmpty(options.getWpCliPath()) || !options.isCheckPluginNewVersion()) {
            return false;
        }
        for (UpdateItem item : getUpdateItems(phpModule)) {
            if (item.isUpdate()) {
                hasUpgrade = true;
View Full Code Here

        useURLRadioButton.setSelected(true);
        init();
    }

    private void init() {
        WordPressOptions options = WordPressOptions.getInstance();
        if (StringUtils.isEmpty(options.getWpCliPath())) {
            useWpCliRadioButton.setEnabled(false);
            useWpCliRadioButton.setVisible(false);
        }

        if (StringUtils.isEmpty(options.getLocalFilePath())) {
            useLocalFileRadioButton.setEnabled(false);
            useLocalFileRadioButton.setVisible(false);
        }

    }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.php.wordpress.ui.options.WordPressOptions

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.