|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ptp.remote.core.PTPRemoteCorePlugin
public class PTPRemoteCorePlugin
The activator class controls the plug-in life cycle
| Field Summary | |
|---|---|
static String |
REMOTE_SERVICES_EXTENSION_POINT_ID
|
| Fields inherited from class org.eclipse.core.runtime.Plugin |
|---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| Constructor Summary | |
|---|---|
PTPRemoteCorePlugin()
The constructor |
|
| Method Summary | |
|---|---|
static Object |
getAdapter(Object sourceObject,
Class adapterType)
If it is possible to adapt the given object to the given type, this returns the adapter. |
IRemoteServices[] |
getAllRemoteServices()
Retrieve a sorted list of remote services. |
IRemoteServices[] |
getAllRemoteServices(org.eclipse.core.runtime.IProgressMonitor monitor)
Retrieve a sorted list of remote services. |
static PTPRemoteCorePlugin |
getDefault()
Returns the shared instance |
IRemoteServices |
getDefaultServices()
Retrieve the default remote services plugin. |
IRemoteServices |
getRemoteServices(String id)
Get the remote services implementation identified by id. |
IRemoteServices |
getRemoteServices(String id,
org.eclipse.core.runtime.IProgressMonitor monitor)
Get the remote services implementation identified by id and ensure that it is initialized. |
IRemoteServices |
getRemoteServices(URI uri)
Get the remote services identified by a URI. |
IRemoteServices |
getRemoteServices(URI uri,
org.eclipse.core.runtime.IProgressMonitor monitor)
Get the remote services implementation identified by URI and ensure that it is initialized. |
IRemoteServicesDescriptor |
getRemoteServicesDescriptor(String id)
Get the remote services descriptor identified by id |
static String |
getUniqueIdentifier()
Get unique identifier for this plugin |
static void |
log(org.eclipse.core.runtime.IStatus status)
Logs the specified status with this plug-in's log. |
static void |
log(String message)
Logs an internal error with the specified message. |
static void |
log(Throwable e)
Logs an internal error with the specified throwable |
void |
start(BundleContext context)
|
void |
stop(BundleContext context)
|
| Methods inherited from class org.eclipse.core.runtime.Plugin |
|---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String REMOTE_SERVICES_EXTENSION_POINT_ID
| Constructor Detail |
|---|
public PTPRemoteCorePlugin()
| Method Detail |
|---|
public static Object getAdapter(Object sourceObject,
Class adapterType)
sourceObject if it is an instance of the adapter
type.
sourceObject - object to adapt, or nulladapterType - type to adapt to
public static PTPRemoteCorePlugin getDefault()
public static String getUniqueIdentifier()
public static void log(org.eclipse.core.runtime.IStatus status)
status - status to logpublic static void log(String message)
message - the error message to logpublic static void log(Throwable e)
e - the exception to be loggedpublic IRemoteServices[] getAllRemoteServices()
IRemoteServices#initialized before they are used.
Alternatively, use getAllRemoteServices(IProgressMonitor) to
obtain all initialized services.
public IRemoteServices[] getAllRemoteServices(org.eclipse.core.runtime.IProgressMonitor monitor)
public IRemoteServices getDefaultServices()
public IRemoteServices getRemoteServices(String id)
IRemoteServices.initialize() must be called before any attempt is
made to use the services.
id - id of the remote services
public IRemoteServices getRemoteServices(String id,
org.eclipse.core.runtime.IProgressMonitor monitor)
id - id of remote services to retrievemonitor - progress monitor to allow user to cancel operation
public IRemoteServices getRemoteServices(URI uri)
IRemoteServices.initialize() must be called before any attempt is
made to use the services.
uri - URI of remote services to retrieve
public IRemoteServices getRemoteServices(URI uri,
org.eclipse.core.runtime.IProgressMonitor monitor)
uri - URI of remote services to retrievemonitor - progress monitor to allow user to cancel operation
public IRemoteServicesDescriptor getRemoteServicesDescriptor(String id)
id - id of the remote services
public void start(BundleContext context)
throws Exception
start in interface BundleActivatorstart in class org.eclipse.core.runtime.PluginException
public void stop(BundleContext context)
throws Exception
stop in interface BundleActivatorstop in class org.eclipse.core.runtime.PluginException
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||