Package org.eclipse.remote.core
Class RemoteConnectionChangeEvent
java.lang.Object
org.eclipse.remote.core.RemoteConnectionChangeEvent
Event representing a change in connection status. The
getType()
method can be used to obtain information about the type
of event that occurred.- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Event indicating the connection attributes had changed.static final int
Event indicating that the connection was closed abnormally.static final int
Event indicating the connection was added.static final int
Event indicating that the connection was closed.static final int
Event indicating that the connection was opened.static final int
Event indicating the connection is about to be removed.static final int
Event indicating that the connection name will be changed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the connection that has changed.int
getType()
Returns the type of event being reported.
-
Field Details
-
CONNECTION_CLOSED
public static final int CONNECTION_CLOSEDEvent indicating that the connection was closed.- See Also:
-
CONNECTION_OPENED
public static final int CONNECTION_OPENEDEvent indicating that the connection was opened.- See Also:
-
CONNECTION_ABORTED
public static final int CONNECTION_ABORTEDEvent indicating that the connection was closed abnormally.- See Also:
-
CONNECTION_RENAMED
public static final int CONNECTION_RENAMEDEvent indicating that the connection name will be changed. It is sent prior to the name change taking place. The event passes an IRemoteConnectionWorkingCopy so that the original and new name can be used by the listener.- See Also:
-
CONNECTION_ADDED
public static final int CONNECTION_ADDEDEvent indicating the connection was added.- Since:
- 2.0
- See Also:
-
CONNECTION_REMOVED
public static final int CONNECTION_REMOVEDEvent indicating the connection is about to be removed.- Since:
- 2.0
- See Also:
-
ATTRIBUTES_CHANGED
public static final int ATTRIBUTES_CHANGEDEvent indicating the connection attributes had changed.- Since:
- 4.0
- See Also:
-
-
Constructor Details
-
RemoteConnectionChangeEvent
-
-
Method Details
-
getConnection
Get the connection that has changed.- Returns:
- IRemoteConnection
-
getType
public int getType()Returns the type of event being reported. This type is obtained by bitwise OR'ing the event types together.CONNECTION_CLOSED
CONNECTION_OPENED
CONNECTION_ABORTED
CONNECTION_RENAMED
- Returns:
- a bitwise OR of event type constants
-