Package org.apache.karaf.eik.ui.model

Examples of org.apache.karaf.eik.ui.model.FeatureRepositoryContentModel


    public Object[] getChildren(final Object parentElement) {
        if (parentElement instanceof IProject && KarafProject.isKarafProject((IProject) parentElement)) {
            final IProject project = (IProject) parentElement;
            final IKarafProject karafProject = (IKarafProject) project.getAdapter(IKarafProject.class);

            return new Object[] { new FeatureRepositoryContentModel(karafProject) };
        } else if (parentElement instanceof ContentModel) {
            final ContentModel contentModel = (ContentModel) parentElement;
            return contentModel.getElements();
        } else if (parentElement == featuresRepositories && parentElement != null) {
            return featuresRepositories.toArray();
View Full Code Here

TOP

Related Classes of org.apache.karaf.eik.ui.model.FeatureRepositoryContentModel

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.