PTP
Release 5.0

org.eclipse.ptp.services.core
Interface IServiceModelEvent


public interface IServiceModelEvent


Field Summary
static int ALL_EVENTS
          Event type that can be used to indicate that notification of all types of events is requested.
static int SERVICE_CONFIGURATION_ADDED
          Event type used to indicate that a new service configuration has been added to the model.
static int SERVICE_CONFIGURATION_CHANGED
          Event type used to indicate that a service configuration has been modified.
static int SERVICE_CONFIGURATION_REMOVED
          Event type used to indicate that a new service configuration has been removed from the model.
static int SERVICE_CONFIGURATION_SELECTED
          Event type used to indicate that a service configuration has been selected as the default.
static int SERVICE_MODEL_LOADED
          Event type used to indicate that the service model has been successfully loaded from persistent storage.
static int SERVICE_MODEL_SAVED
          Event type used to indicate that the service model has been successfully saved to persistent storage.
static int SERVICE_PROVIDER_CHANGED
          Event type that can be used to indicate that a service provider has been modified.
 
Method Summary
 IServiceProvider getOldProvider()
          For events of type SERVICE_CONFIGURATION_CHANGED this will return the service provider instance that was replaced or removed.
 Object getSource()
          Returns an object identifying the source of this event.
 int getType()
          Returns the type of event being reported.
 

Field Detail

SERVICE_CONFIGURATION_ADDED

static final int SERVICE_CONFIGURATION_ADDED
Event type used to indicate that a new service configuration has been added to the model. For this event type, getSource() will return the new service configuration.

See Also:
Constant Field Values

SERVICE_CONFIGURATION_REMOVED

static final int SERVICE_CONFIGURATION_REMOVED
Event type used to indicate that a new service configuration has been removed from the model. For this event type, getSource() will return the old service configuration.

See Also:
Constant Field Values

SERVICE_CONFIGURATION_CHANGED

static final int SERVICE_CONFIGURATION_CHANGED
Event type used to indicate that a service configuration has been modified. For this event type, getSource() will return the modified service configuration.

See Also:
Constant Field Values

SERVICE_CONFIGURATION_SELECTED

static final int SERVICE_CONFIGURATION_SELECTED
Event type used to indicate that a service configuration has been selected as the default. For this event type, getSource() will return the service configuration, or null if all service configurations are unselected.

See Also:
Constant Field Values

SERVICE_MODEL_SAVED

static final int SERVICE_MODEL_SAVED
Event type used to indicate that the service model has been successfully saved to persistent storage. For this event type, getSource() will return an instance of IServiceModelManager.

See Also:
Constant Field Values

SERVICE_MODEL_LOADED

static final int SERVICE_MODEL_LOADED
Event type used to indicate that the service model has been successfully loaded from persistent storage. For this event type, getSource() will return an instance of IServiceModelManager.

See Also:
Constant Field Values

SERVICE_PROVIDER_CHANGED

static final int SERVICE_PROVIDER_CHANGED
Event type that can be used to indicate that a service provider has been modified. For this type of event, getSource() will return an instance of IServiceProvider.

See Also:
Constant Field Values

ALL_EVENTS

static final int ALL_EVENTS
Event type that can be used to indicate that notification of all types of events is requested.

See Also:
Constant Field Values
Method Detail

getSource

Object getSource()
Returns an object identifying the source of this event.

Returns:
an object identifying the source of this event
See Also:
EventObject

getOldProvider

IServiceProvider getOldProvider()
For events of type SERVICE_CONFIGURATION_CHANGED this will return the service provider instance that was replaced or removed.

See Also:
SERVICE_CONFIGURATION_CHANGED

getType

int getType()
Returns the type of event being reported.

Returns:
one of the event type constants SERVICE_CONFIGURATION_ADDED SERVICE_CONFIGURATION_REMOVED SERVICE_CONFIGURATION_CHANGED SERVICE_CONFIGURATION_SELECTED SERVICE_PROVIDER_CHANGED SERVICE_MODEL_SAVED SERVICE_MODEL_LOADED

PTP
Release 5.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.