Package fr.soleil.lib.flyscan.model.parsing.plugin

Examples of fr.soleil.lib.flyscan.model.parsing.plugin.Plugin


                                }

                                for (final FSObject fsObject : section.getObjects()) {

                                    if (fsObject != null) {
                                        Plugin pluginObj = getPluginAndProcessParamsWithDefaultValues(plugins, section,
                                                fsObject);

                                        objectPanel = buildObjectPanel(fsObject);

                                        final GridBagConstraints sectionConstraints = new GridBagConstraints();
                                        sectionConstraints.gridx = 0;
                                        sectionConstraints.gridy = GridBagConstraints.RELATIVE;
                                        sectionConstraints.gridwidth = GridBagConstraints.REMAINDER;
                                        sectionConstraints.weightx = 1;
                                        sectionConstraints.weighty = 1;
                                        sectionConstraints.anchor = GridBagConstraints.NORTHWEST;
                                        sectionConstraints.fill = GridBagConstraints.HORIZONTAL;
                                        sectionConstraints.insets = new Insets(5, 5, 5, 5);

                                        sectionPanel.add(objectPanel, sectionConstraints);

                                        for (final Entry entry : fsObject.getEntries()) {
                                            if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
                                                try {
                                                    buidEntryGUI(objectPanel, sectionPanel, fsObject, pluginObj, entry,
                                                            GENERAL, null);
                                                } catch (FSParsingException e) {
                                                    if (e.getComponent() != null && e.getLabelName() != null) {
                                                        displayError(entry, section, fsObject, e.getLabelName(),
                                                                e.getComponent(), e.getMessage(), GENERAL);
                                                    }
                                                    e.printStackTrace();
                                                    LOGGER.log(Level.SEVERE, e.getMessage());
                                                }
                                            }

                                        }
                                    }

                                }
                            }

                            generalPanel.add(sectionPanel, constraints);
                        }

                    } else {

                        for (final FSObject fsObject : section.getObjects()) {

                            if (fsObject != null) {
                                // Choose plugin
                                Plugin pluginObj = getPluginAndProcessParamsWithDefaultValues(plugins, section,
                                        fsObject);

                                objectPanel = buildObjectPanel(fsObject);

                                if (fsObject instanceof ContinuousActuator) {
View Full Code Here


        return nb;
    }

    protected Plugin getPluginAndProcessParamsWithDefaultValues(List<Plugin> plugins, Section section,
            final FSObject fsObject) {
        Plugin pluginObj = null;
        try {
            pluginObj = getPlugin(plugins, fsObject);
            if (pluginObj != null) {
                processParamsWithDefaultValues(fsObject, pluginObj);
            }
View Full Code Here

     * @param fsObject FSObject
     * @return Plugin
     * @throws FSParsingException
     */
    protected Plugin getPlugin(List<Plugin> plugins, final FSObject fsObject) throws FSParsingException {
        Plugin plugin = null;
        if (plugins != null) {
            String type = fsObject.getType().trim();
            for (Plugin p : plugins) {
                String pluginName = p.getName().trim();
                if (pluginName.equalsIgnoreCase(type)) {
View Full Code Here

            for (Entry entry : section.getEntries()) {
                writeEntry(sb, entry, null);
            }
            for (FSObject obj : section.getObjects()) {
                if (obj != null) {
                    Plugin plugin = null;
                    if (plugins != null) {
                        String type = obj.getType().trim();
                        for (Plugin p : plugins) {
                            String pluginName = p.getName().trim();
                            if (pluginName.equalsIgnoreCase(type)) {
View Full Code Here

TOP

Related Classes of fr.soleil.lib.flyscan.model.parsing.plugin.Plugin

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.