Examples of UpdateSearchScope


Examples of org.eclipse.update.search.UpdateSearchScope

      return;

    try {

      /* Scope to RSSOwl Updates Only */
      UpdateSearchScope scope = new UpdateSearchScope();
      scope.addSearchSite("RSSOwl.org", new URL(UPDATE_SITE), null); //$NON-NLS-1$
      scope.setFeatureProvidedSitesEnabled(false);

      /* Run in Update Job */
      final UpdateJob job = new UpdateJob(Messages.FindUpdatesAction_UPDATE_SEARCH, true, false);
      job.getSearchRequest().setScope(scope);
      job.addJobChangeListener(new JobChangeAdapter() {
View Full Code Here

Examples of org.eclipse.update.search.UpdateSearchScope

      }
    });
  }

  UpdateSearchRequest getSearchRequest() {
    UpdateSearchScope scope = new UpdateSearchScope();

    /* Check for User Defined Sites from System Property */
    String extensionSites = System.getProperty(EXTENSION_SITES_PROPERTY);
    if (StringUtils.isSet(extensionSites)) {
      String[] sites = extensionSites.split(EXTENSION_SITES_DIVIDER);
      for (String site : sites) {
        try {
          URL url = new URL(site);
          scope.addSearchSite(url.toString(), url, null);
        } catch (MalformedURLException e) {
          // skip bad URLs
        }
      }
    }

    /* Add RSSOwl.org if user did not define any other sites */
    if (scope.getSearchSites().length == 0) {
      try {
        URL url = new URL(UPDATE_SITE);
        scope.addSearchSite("RSSOwl.org", url, null); //$NON-NLS-1$
      } catch (MalformedURLException e) {
        // skip bad URLs
      }
    }

View Full Code Here

Examples of org.eclipse.update.search.UpdateSearchScope

    });
  }

  @SuppressWarnings("nls")
  UpdateSearchRequest getSearchRequest() {
    UpdateSearchScope scope = new UpdateSearchScope();
    try {
      URL url = new URL(UPDATE_SITE);
      scope.addSearchSite("RSSOwl.org", url, new String[] { RSSOWL_CATEGORY });
    } catch (MalformedURLException e) {
      // skip bad URLs
    }

    UpdateSearchRequest result = new UpdateSearchRequest(UpdateSearchRequest.createDefaultSiteSearchCategory(), scope);
View Full Code Here

Examples of org.eclipse.update.search.UpdateSearchScope

      }
    });
  }

  UpdateSearchRequest getSearchRequest() {
    UpdateSearchScope scope = new UpdateSearchScope();
    try {
      // TODO change name
      URL url = new URL(UPDATE_SITE);
      scope.addSearchSite("Knapper Update Site", url,
          new String[] {KNAPPER_CATEGORY});
    } catch (MalformedURLException e) {
      // skip bad URLs
    }
View Full Code Here

Examples of org.eclipse.update.search.UpdateSearchScope

      }
    });
  }

  UpdateSearchRequest getSearchRequest() {
    UpdateSearchScope scope = new UpdateSearchScope();
    try {
      URL url = new URL(SetupConstants.UPDATE_SITE_URL);
      scope.addSearchSite(KNAPPER_UPDATE_SITE, url,
          new String[] {KNAPPER_CATEGORY});
    } catch (MalformedURLException e) {
      // skip bad URLs
    }
View Full Code Here

Examples of org.eclipse.update.search.UpdateSearchScope

      }
    });
  }

  UpdateSearchRequest getSearchRequest() {
    UpdateSearchScope scope = new UpdateSearchScope();
    try {
      URL url = new URL(SetupConstants.UPDATE_SITE_URL);
      scope.addSearchSite(KNAPPER_UPDATE_SITE, url,
          new String[] {KNAPPER_CATEGORY});
    } catch (MalformedURLException e) {
      // skip bad URLs
    }
View Full Code Here

Examples of org.eclipse.update.search.UpdateSearchScope


            private UpdateSearchRequest getSearchRequest()
            {
                UpdateSearchRequest result = new UpdateSearchRequest( UpdateSearchRequest
                    .createDefaultSiteSearchCategory(), new UpdateSearchScope() );
                result.addFilter( new BackLevelFilter() );
                result.addFilter( new EnvironmentFilter() );
                UpdateSearchScope scope = new UpdateSearchScope();
                try
                {
                    String homeBase = System.getProperty(
                        "ldapstudio.homebase", Messages.getString( "AddExtensionAction.LDAP_Studio_Home_Base" ) ); //$NON-NLS-1$ //$NON-NLS-2$
                    URL url = new URL( homeBase );
                    scope.addSearchSite( Messages.getString( "AddExtensionAction.LDAP_Studio_Site" ), url, null ); //$NON-NLS-1$
                }
                catch ( MalformedURLException e )
                {
                    // TODO: handle exception
                }
View Full Code Here

Examples of org.eclipse.update.search.UpdateSearchScope


            private UpdateSearchRequest getSearchRequest()
            {
                UpdateSearchRequest result = new UpdateSearchRequest( UpdateSearchRequest
                    .createDefaultSiteSearchCategory(), new UpdateSearchScope() );
                result.addFilter( new BackLevelFilter() );
                result.addFilter( new EnvironmentFilter() );
                UpdateSearchScope scope = new UpdateSearchScope();
                try
                {
                    String homeBase = System.getProperty(
                        "studio.homebase", Messages.getString( "AddExtensionAction.Apache_Directory_Studio_Home_Base" ) ); //$NON-NLS-1$ //$NON-NLS-2$
                    URL url = new URL( homeBase );
                    scope.addSearchSite( Messages.getString( "AddExtensionAction.Apache_Directory_Studio_Site" ), url, null ); //$NON-NLS-1$
                }
                catch ( MalformedURLException e )
                {
                    // TODO: handle exception
                }
View Full Code Here

Examples of org.eclipse.update.search.UpdateSearchScope


            private UpdateSearchRequest getSearchRequest()
            {
                UpdateSearchRequest result = new UpdateSearchRequest( UpdateSearchRequest
                    .createDefaultSiteSearchCategory(), new UpdateSearchScope() );
                result.addFilter( new BackLevelFilter() );
                result.addFilter( new EnvironmentFilter() );
                UpdateSearchScope scope = new UpdateSearchScope();
                try
                {
                    String homeBase = System
                        .getProperty(
                            "studio.homebase", Messages.getString( "AddExtensionAction.Apache_Directory_Studio_Home_Base" ) ); //$NON-NLS-1$ //$NON-NLS-2$
                    URL url = new URL( homeBase );
                    scope.addSearchSite(
                        Messages.getString( "AddExtensionAction.Apache_Directory_Studio_Site" ), url, null ); //$NON-NLS-1$
                }
                catch ( MalformedURLException e )
                {
                    // TODO: handle exception
View Full Code Here

Examples of org.eclipse.update.search.UpdateSearchScope


            private UpdateSearchRequest getSearchRequest()
            {
                UpdateSearchRequest result = new UpdateSearchRequest( UpdateSearchRequest
                    .createDefaultSiteSearchCategory(), new UpdateSearchScope() );
                result.addFilter( new BackLevelFilter() );
                result.addFilter( new EnvironmentFilter() );
                UpdateSearchScope scope = new UpdateSearchScope();
                try
                {
                    String homeBase = System
                        .getProperty(
                            "studio.homebase", Messages.getString( "AddExtensionAction.Apache_Directory_Studio_Home_Base" ) ); //$NON-NLS-1$ //$NON-NLS-2$
                    URL url = new URL( homeBase );
                    scope.addSearchSite(
                        Messages.getString( "AddExtensionAction.Apache_Directory_Studio_Site" ), url, null ); //$NON-NLS-1$
                }
                catch ( MalformedURLException e )
                {
                    // TODO: handle exception
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.