Package org.apache.karaf.eik.ui

Examples of org.apache.karaf.eik.ui.IKarafProject


     *
     * @param monitor
     * @throws CoreException
     */
    private void buildObr(final IProgressMonitor monitor) throws CoreException {
        final IKarafProject karafProject = getKarafProject();

        monitor.subTask("Creating OBR for Apache Karaf Project: " + karafProject.getName());

        final IPath obrFile = karafProject.getFolder("platform").getRawLocation().append("eclipse.obr").addFileExtension("xml");

        final PopulateObrFileJob populateObrJob = new PopulateObrFileJob(karafProject.getName(), obrFile.toFile());
        populateObrJob.schedule();

        try {
            populateObrJob.join();
        } catch (final InterruptedException e) {
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

                if (!(element instanceof IProject)) {
                    return;
                }

                final IProject project = (IProject) element;
                final IKarafProject karafProject = (IKarafProject) project.getAdapter(IKarafProject.class);
                final IEditorInput editorInput = new KarafPlatformEditorInput(karafProject);

                try {
                    final IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
                    page.openEditor(editorInput, KarafPlatformEditorPart.ID);
                } catch (final PartInitException e) {
                    KarafWorkbenchActivator.getLogger().error("Unable to open editor for " + karafProject.getName(), e);
                }
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.apache.karaf.eik.ui.IKarafProject

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.