Examples of IBundleProjectService


Examples of org.eclipse.pde.core.project.IBundleProjectService

    }

    protected static void setManifestLocaton( IProject project, IPath manifestPath, IProgressMonitor monitor )
        throws CoreException
    {
        IBundleProjectService projectService = M2ETychoActivator.getDefault().getProjectService();
        if ( manifestPath != null && manifestPath.segmentCount() > 1 )
        {
            IPath metainfPath = manifestPath.removeLastSegments( 1 );
            project.getFile( metainfPath ).refreshLocal( IResource.DEPTH_INFINITE, monitor );
            projectService.setBundleRoot( project, metainfPath );
        }
        else
        {
            // in case of configuration update, reset to the default value
            projectService.setBundleRoot( project, null );
        }
    }
View Full Code Here

Examples of org.eclipse.pde.core.project.IBundleProjectService

    return new E3ViewPartGenerator();
  }

  public boolean performFinish() {
    try {
      IBundleProjectService bpService = Activator.getDefault().acquireService(IBundleProjectService.class);
      IProject p = root.getJavaProject().getProject();
     
      if( p.hasNature("org.eclipse.pde.PluginNature") ) {
        IBundleProjectDescription bundleDesc = bpService.getDescription(p);
       
        IRequiredBundleDescription requireDesc = bpService.newRequiredBundle("at.bestsolution.efxclipse.runtime.workbench3", null, false, false);
        IPackageImportDescription importDesc = bpService.newPackageImport("javafx.scene", null, false);
       
        BundleHelper.addRequiredBundleDescriptions(bundleDesc, requireDesc);
        BundleHelper.addPackageImportDescriptions(bundleDesc, importDesc);
       
        bundleDesc.apply(new NullProgressMonitor());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.