Eclipse Platform
2.0

org.eclipse.update.core
Class SiteManager

java.lang.Object
  |
  +--org.eclipse.update.core.SiteManager

public class SiteManager
extends Object

Site Manager. A helper class used for creating site instance. Site manager is a singleton class. It cannot be instantiated; all functionality is provided by static methods.

Since:
2.0
See Also:
ISite, ILocalSite, IConfiguredSite

Method Summary
static org.eclipse.update.configuration.ILocalSite getLocalSite()
          Returns the "local site".
static ISite getSite(URL siteURL)
          Returns a site object for the site specified by the argument URL.
static void handleNewChanges()
          Trigger handling of newly discovered features.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSite

public static ISite getSite(URL siteURL)
                     throws CoreException
Returns a site object for the site specified by the argument URL. Typically, the URL references a site manifest file on an update site. An update site acts as a source of features for installation actions.

Parameters:
siteURL - site URL
Returns:
site object for the url
Throws:
CoreException
Since:
2.0

getLocalSite

public static org.eclipse.update.configuration.ILocalSite getLocalSite()
                                                                throws CoreException
Returns the "local site". A local site is a logical collection of configuration information plus one or more file system installation directories, represented as intividual sites. These are potential targets for installation actions.

Returns:
the local site
Throws:
CoreException
Since:
2.0

handleNewChanges

public static void handleNewChanges()
                             throws CoreException
Trigger handling of newly discovered features. This method can be called by the executing application whenever it is invoked with the -newUpdates command line argument.

Throws:
CoreException - if an error occurs.
Since:
2.0

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.