Examples of PluginConfigGUI


Examples of net.sf.jmp3renamer.gui.PluginConfigGUI

                new ServiceTrackerCustomizer() {
            public void removedService(ServiceReference sr, Object service) {
                // remove node from navi tree
                for (int i = 0; i < pluginNode.getChildCount(); i++) {
                    DefaultMutableTreeNode node = (DefaultMutableTreeNode) pluginNode.getChildAt(i);
                    PluginConfigGUI gui = (PluginConfigGUI) node.getUserObject();
                    if (gui == service) {
                        naviModel.removeNodeFromParent(node);
                    }
                }

                // remove panel from main panel
                cards.removeLayoutComponent((Component)service);
                mainPanel.remove((Component)service);
            }

            public void modifiedService(ServiceReference arg0, Object arg1) {
            }

            public Object addingService(ServiceReference sr) {
                PluginConfigGUI gui = (PluginConfigGUI) sr.getBundle().getBundleContext().getService(sr);
                addPlugin(gui);
                return gui;
            }
        });
    }
View Full Code Here

Examples of net.sf.jmp3renamer.gui.PluginConfigGUI

    public void valueChanged(TreeSelectionEvent e) {
        DefaultMutableTreeNode source = (DefaultMutableTreeNode) e.getPath().getLastPathComponent();
        DefaultMutableTreeNode parent = (DefaultMutableTreeNode) e.getPath().getParentPath().getLastPathComponent();

        if (parent == pluginNode) {
            PluginConfigGUI gui = (PluginConfigGUI) source.getUserObject();
            cards.show(mainPanel, gui.getDisplayName());
        } else if (source == languageNode) {
            cards.show(mainPanel, "LANGUAGE");
        } else if (source == filenameNode) {
            cards.show(mainPanel, "FILENAME");
        } else if (source == pluginNode) {
View Full Code Here

Examples of net.sf.jmp3renamer.gui.PluginConfigGUI

        Main.setProperty("lang", loc);

        // plugins
        Object[] configGUIs = pluginTracker.getServices();
        for (Object configGUI : configGUIs) {
            PluginConfigGUI gui = (PluginConfigGUI) configGUI;
            gui.applyProperties();
        }

        // proxy
        proxyPanel.applyConfig();
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.