Package org.eclipse.remote.core
Class RemoteConnectionChangeEvent
- java.lang.Object
-
- org.eclipse.remote.core.RemoteConnectionChangeEvent
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTES_CHANGEDEvent indicating the connection attributes had changed.static intCONNECTION_ABORTEDEvent indicating that the connection was closed abnormally.static intCONNECTION_ADDEDEvent indicating the connection was added.static intCONNECTION_CLOSEDEvent indicating that the connection was closed.static intCONNECTION_OPENEDEvent indicating that the connection was opened.static intCONNECTION_REMOVEDEvent indicating the connection is about to be removed.static intCONNECTION_RENAMEDEvent indicating that the connection name will be changed.
-
Constructor Summary
Constructors Constructor Description RemoteConnectionChangeEvent(IRemoteConnection connection, int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRemoteConnectiongetConnection()Get the connection that has changed.intgetType()Returns the type of event being reported.
-
-
-
Field Detail
-
CONNECTION_CLOSED
public static final int CONNECTION_CLOSED
Event indicating that the connection was closed.- See Also:
- Constant Field Values
-
CONNECTION_OPENED
public static final int CONNECTION_OPENED
Event indicating that the connection was opened.- See Also:
- Constant Field Values
-
CONNECTION_ABORTED
public static final int CONNECTION_ABORTED
Event indicating that the connection was closed abnormally.- See Also:
- Constant Field Values
-
CONNECTION_RENAMED
public static final int CONNECTION_RENAMED
Event 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:
- Constant Field Values
-
CONNECTION_ADDED
public static final int CONNECTION_ADDED
Event indicating the connection was added.- Since:
- 2.0
- See Also:
- Constant Field Values
-
CONNECTION_REMOVED
public static final int CONNECTION_REMOVED
Event indicating the connection is about to be removed.- Since:
- 2.0
- See Also:
- Constant Field Values
-
ATTRIBUTES_CHANGED
public static final int ATTRIBUTES_CHANGED
Event indicating the connection attributes had changed.- Since:
- 4.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RemoteConnectionChangeEvent
public RemoteConnectionChangeEvent(IRemoteConnection connection, int type)
-
-
Method Detail
-
getConnection
public IRemoteConnection 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_CLOSEDCONNECTION_OPENEDCONNECTION_ABORTEDCONNECTION_RENAMED- Returns:
- a bitwise OR of event type constants
-
-