Package org.bndtools.core.ui

Examples of org.bndtools.core.ui.IFormPageFactory


        List<String> subBndFiles = model.getSubBndFiles();
        boolean isSubBundles = subBndFiles != null && !subBndFiles.isEmpty();

        for (Entry<String,IFormPageFactory> pageEntry : pageFactories.entrySet()) {
            String pageId = pageEntry.getKey();
            IFormPageFactory page = pageEntry.getValue();

            if (!isSubBundles && page.supportsMode(IFormPageFactory.Mode.bundle))
                pages.add(pageId);
            else if (isProjectFile && page.supportsMode(IFormPageFactory.Mode.project))
                pages.add(pageId);
        }

        return pages;
    }
View Full Code Here


        List<String> subBndFiles = model.getSubBndFiles();
        boolean isSubBundles = subBndFiles != null && !subBndFiles.isEmpty();

        for (Entry<String,IFormPageFactory> pageEntry : pageFactories.entrySet()) {
            String pageId = pageEntry.getKey();
            IFormPageFactory page = pageEntry.getValue();

            if (!isSubBundles && page.supportsMode(IFormPageFactory.Mode.bundle))
                pages.add(pageId);
            else if (isProjectFile && page.supportsMode(IFormPageFactory.Mode.project))
                pages.add(pageId);
        }

        return pages;
    }
View Full Code Here

        }
    }

    public IFormPage createPage(ExtendedFormEditor editor, BndEditModel model, String id) throws IllegalArgumentException {
        try {
            IFormPageFactory factory = (IFormPageFactory) configElem.createExecutableExtension("class");
            return factory.createPage(editor, model, id);
        } catch (CoreException e) {
            logger.logError("Unable to create extension form page", e);
            throw new IllegalArgumentException("Error loading extension form page", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.bndtools.core.ui.IFormPageFactory

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.