Examples of AbstractPlugin


Examples of org.b3log.latke.plugin.AbstractPlugin

        try {
            // Reads plugin status from datastore and clear plugin datastore
            for (final JSONObject oldPluginDesc : persistedPlugins) {
                final String descId = oldPluginDesc.getString(Keys.OBJECT_ID);
                final AbstractPlugin plugin = get(plugins, descId);

                PLUGIN_REPOS.remove(descId);

                if (null != plugin) {
                    final String status =
                            oldPluginDesc.getString(Plugin.PLUGIN_STATUS);
                    plugin.setStatus(PluginStatus.valueOf(status));
                }
            }

            // Adds these plugins into datastore
            for (final AbstractPlugin plugin : plugins) {
                final JSONObject pluginDesc = plugin.toJSONObject();
                PLUGIN_REPOS.add(pluginDesc);

                LOGGER.log(Level.FINEST, "Refreshed plugin[{0}]", pluginDesc);
            }
View Full Code Here

Examples of org.b3log.latke.plugin.AbstractPlugin

        PLUGIN_REPOS.setCacheEnabled(false);

        // Reads plugin status from datastore and clear plugin datastore
        for (final JSONObject oldPluginDesc : persistedPlugins) {
            final String descId = oldPluginDesc.getString(Keys.OBJECT_ID);
            final AbstractPlugin plugin = get(plugins, descId);

            PLUGIN_REPOS.remove(descId);

            if (null != plugin) {
                final String status =
                        oldPluginDesc.getString(Plugin.PLUGIN_STATUS);
                plugin.setStatus(PluginStatus.valueOf(status));
            }
        }

        // Adds these plugins into datastore
        for (final AbstractPlugin plugin : plugins) {
            final JSONObject pluginDesc = plugin.toJSONObject();
            PLUGIN_REPOS.addAsync(pluginDesc);
           
            LOGGER.log(Level.FINEST, "Refreshed plugin[{0}]", pluginDesc);
        }
       
View Full Code Here

Examples of org.openbp.jaspira.plugin.AbstractPlugin

    pageButtonsByPage = new HashMap();
    buttonGroup = new ButtonGroup();

    // Create a dummy plugin for event dispatching.
    delegatePlugin = new AbstractPlugin()
    {
      public ResourceCollection getPluginResourceCollection()
      {
        return resourceCollection;
      }
View Full Code Here

Examples of org.rat.free.security.makifx.base.AbstractPlugin

                .addListener((ObservableValue<? extends Tab> tab, Tab old_tab, Tab new_tab) -> {
                    String id = new_tab.getId();

                    if (id != null) {

                        AbstractPlugin ap = MAP_PLUGIN.get(id);

                        try {
                            if (ap != null) {
                                ap.setSelected();
                            }
                        } catch (Exception exc) {
                            exc.printStackTrace();
                        }
View Full Code Here

Examples of org.rat.free.security.makifx.base.AbstractPlugin

    private void saveAllData() {
        try {
            Collection<AbstractPlugin> plugins = MAP_PLUGIN.values();
            if (plugins != null && !plugins.isEmpty()) {
                for (Iterator<AbstractPlugin> ite = plugins.iterator(); ite.hasNext();) {
                    final AbstractPlugin plugin = ite.next();
                    if (Answare.NEGATIVE.equals(plugin.onSavingData())) {

                        log("WRN - Can't save plugin:" + plugin.getId() + " RETURN FALSE");

                        Platform.runLater(() -> {
                            plugin.setSelected();
                        });

                        Tab tab = findTab(plugin.getId());
                        selectTab(tab);
                        return;
                    }
                }
            }
View Full Code Here
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.