Package org.apache.karaf.eik.ui.project

Examples of org.apache.karaf.eik.ui.project.KarafProject


        {
            IKarafProject karafProject = null;
            final KarafPlatformModel karafPlatformModel = (KarafPlatformModel) adaptableObject;
            for (final IProject project : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
                if (KarafProject.isKarafProject(project)) {
                    karafProject = new KarafProject(project);
                    if (karafPlatformModel.getRootDirectory().equals(karafProject.getPlatformRootDirectory())) {
                        break;
                    }
                }
            }

            adapted = karafProject;
        } else if (    IKarafProject.class.equals(adapterType)
                    && adaptableObject instanceof IProject)
        {
            if (KarafProject.isKarafProject((IProject) adaptableObject)) {
                adapted = new KarafProject((IProject) adaptableObject);
            } else {
                return null;
            }
        } else {
            adapted = null;
View Full Code Here


        if (karafPlatformModel != null) {
            try {
                final KarafWorkingPlatformModel workingPlatformModel =
                    new WorkingKarafPlatformModel(mainPage.getLocationPath().append(mainPage.getProjectName()), karafPlatformModel);

                final IKarafProject karafProject = new KarafProject(mainPage.getProjectHandle());
                if (mainPage.getProjectHandle().exists()) {
                    return false;
                }

                getContainer().run(false, true, new NewKarafProjectOperation(karafPlatformModel, workingPlatformModel, karafProject));
View Full Code Here

TOP

Related Classes of org.apache.karaf.eik.ui.project.KarafProject

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.