Examples of LibraryInstallDelegate


Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

    jsfCompositeLayout.marginBottom = 0;
    jsfCompositeLayout.marginRight = 0;
    jsfCompositeLayout.marginLeft = 0;
    composite.setLayout(jsfCompositeLayout);
   
    final LibraryInstallDelegate librariesInstallDelegate
        = (LibraryInstallDelegate) getDataModel().getProperty( LIBRARY_PROVIDER_DELEGATE );
   
    final Control librariesComposite
        = LibraryProviderFrameworkUi.createInstallLibraryPanel( composite, librariesInstallDelegate,
                                                                Messages.TapestryFacetInstallPage_TapestryImplementationLibrariesFrame );
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

     * @see org.eclipse.jface.wizard.WizardPage#isPageComplete()
     */
    @Override
    public boolean isPageComplete()
    {
        final LibraryInstallDelegate librariesInstallDelegate = (LibraryInstallDelegate) getDataModel().getProperty(LIBRARY_PROVIDER_DELEGATE);
        if (librariesInstallDelegate == null)
            throw new IllegalArgumentException("LibraryInstallDelegate is expected to be non-null"); //$NON-NLS-1$

        return super.isPageComplete() && (librariesInstallDelegate.validate().getSeverity() != IStatus.ERROR);
    }
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

        final IFacetedProjectWorkingCopy fpjwc = (IFacetedProjectWorkingCopy) getProperty( FACETED_PROJECT_WORKING_COPY );
        final IProjectFacetVersion fv = (IProjectFacetVersion) getProperty( FACET_VERSION );
       
        if( this.libraryInstallDelegate == null && fpjwc != null && fv != null )
        {
            this.libraryInstallDelegate = new LibraryInstallDelegate( fpjwc, fv );
           
            this.libraryInstallDelegate.addListener
            (
                new IPropertyChangeListener()
                {
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

//      createClasspathEntries(project, fv, config, monitor);
     
      //Configure libraries
      ( (LibraryInstallDelegate) config.getProperty( IJSFFacetInstallDataModelProperties.LIBRARY_PROVIDER_DELEGATE ) ).execute( new NullProgressMonitor() );

          final LibraryInstallDelegate libDelegate = (LibraryInstallDelegate) (config.getProperty( IJSFFacetInstallDataModelProperties.LIBRARY_PROVIDER_DELEGATE));
          final LibraryProviderOperationConfig libConfig = libDelegate.getLibraryProviderOperationConfig();

      if (jsfFacetConfigurationEnabled)
            {
          // Create config file
          createConfigFile(project, fv, config, monitor, jsfUtil);
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

        final IFacetedProjectWorkingCopy fpjwc = (IFacetedProjectWorkingCopy) getProperty( FACETED_PROJECT_WORKING_COPY );
        final IProjectFacetVersion fv = (IProjectFacetVersion) getProperty( FACET_VERSION );
       
        if( this.libraryInstallDelegate == null && fpjwc != null && fv != null )
        {
            this.libraryInstallDelegate = new LibraryInstallDelegate( fpjwc, fv );
           
            this.libraryInstallDelegate.addListener
            (
                new IPropertyChangeListener()
                {
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

//      createClasspathEntries(project, fv, config, monitor);
     
      //Configure libraries
      ( (LibraryInstallDelegate) config.getProperty( IJSFFacetInstallDataModelProperties.LIBRARY_PROVIDER_DELEGATE ) ).execute( new NullProgressMonitor() );

          final LibraryInstallDelegate libDelegate = (LibraryInstallDelegate) (config.getProperty( IJSFFacetInstallDataModelProperties.LIBRARY_PROVIDER_DELEGATE));
          final LibraryProviderOperationConfig libConfig = libDelegate.getLibraryProviderOperationConfig();

      if (jsfFacetConfigurationEnabled)
            {
          // Create config file
          createConfigFile(project, fv, config, monitor, jsfUtil);
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

      Object obj = config
          .getProperty(ITapestryFacetInstallDataModelProperties.LIBRARY_PROVIDER_DELEGATE);
      // Configure libraries
      ((LibraryInstallDelegate) obj).execute(new NullProgressMonitor());

      final LibraryInstallDelegate libDelegate = (LibraryInstallDelegate) (config
          .getProperty(ITapestryFacetInstallDataModelProperties.LIBRARY_PROVIDER_DELEGATE));
      final LibraryProviderOperationConfig libConfig = libDelegate
          .getLibraryProviderOperationConfig();

      if (tapestryFacetConfigurationEnabled) {
       
        // Copy Tapestry jar libraries to web project
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

        final IFacetedProjectWorkingCopy fpjwc = (IFacetedProjectWorkingCopy) getProperty( FACETED_PROJECT_WORKING_COPY );
        final IProjectFacetVersion fv = (IProjectFacetVersion) getProperty( FACET_VERSION );
       
        if( this.libraryInstallDelegate == null && fpjwc != null && fv != null )
        {
            this.libraryInstallDelegate = new LibraryInstallDelegate( fpjwc, fv );
           
            this.libraryInstallDelegate.addListener
            (
                new IPropertyChangeListener()
                {
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

      Object obj = config
          .getProperty(ITapestryFacetInstallDataModelProperties.LIBRARY_PROVIDER_DELEGATE);
      // Configure libraries
      ((LibraryInstallDelegate) obj).execute(new NullProgressMonitor());

      final LibraryInstallDelegate libDelegate = (LibraryInstallDelegate) (config
          .getProperty(ITapestryFacetInstallDataModelProperties.LIBRARY_PROVIDER_DELEGATE));
      final LibraryProviderOperationConfig libConfig = libDelegate
          .getLibraryProviderOperationConfig();

      if (tapestryFacetConfigurationEnabled) {
       
        // Copy Tapestry jar libraries to web project
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate

  @SuppressWarnings("restriction")
  private IDataModel createJaxRsDataModel(IFacetedProject fproj,
      IProjectFacetVersion facetVersion) {
    IDataModel config = (IDataModel) new JAXRSFacetInstallDataModelProvider().create();
    LibraryInstallDelegate libraryDelegate = new LibraryInstallDelegate(fproj, facetVersion);
    ILibraryProvider provider = LibraryProviderFramework.getProvider(IJAXRSCoreConstants.NO_OP_LIBRARY_ID);
    libraryDelegate.setLibraryProvider(provider);
    config.setProperty(IJAXRSFacetInstallDataModelProperties.LIBRARY_PROVIDER_DELEGATE, libraryDelegate);
    return config;
  }
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.