PTP
Release 5.0

org.eclipse.ptp.remote.ui
Interface IRemoteUIConnectionManager


public interface IRemoteUIConnectionManager


Field Summary
static java.lang.String CONNECTION_ADDRESS_HINT
           
static java.lang.String CONNECTION_PORT_HINT
           
static java.lang.String CONNECTION_TIMEOUT_HINT
           
static java.lang.String LOGIN_USERNAME_HINT
           
 
Method Summary
 IRemoteConnection newConnection(org.eclipse.swt.widgets.Shell shell)
          Create a new connection.
 IRemoteConnection newConnection(org.eclipse.swt.widgets.Shell shell, java.lang.String[] attrHints, java.lang.String[] attrHintValues)
          Create a new connection using the remote service provider new connection dialog.
 void openConnectionWithProgress(org.eclipse.swt.widgets.Shell shell, org.eclipse.jface.operation.IRunnableContext context, IRemoteConnection connection)
          Attempt to open a connection using a progress monitor.
 void updateConnection(org.eclipse.swt.widgets.Shell shell, IRemoteConnection connection)
          Change a connection configuration.
 

Field Detail

CONNECTION_ADDRESS_HINT

static final java.lang.String CONNECTION_ADDRESS_HINT
Since:
5.0
See Also:
Constant Field Values

CONNECTION_PORT_HINT

static final java.lang.String CONNECTION_PORT_HINT
Since:
5.0
See Also:
Constant Field Values

CONNECTION_TIMEOUT_HINT

static final java.lang.String CONNECTION_TIMEOUT_HINT
Since:
5.0
See Also:
Constant Field Values

LOGIN_USERNAME_HINT

static final java.lang.String LOGIN_USERNAME_HINT
Since:
5.0
See Also:
Constant Field Values
Method Detail

newConnection

IRemoteConnection newConnection(org.eclipse.swt.widgets.Shell shell)
Create a new connection. The implementation can chose to do this in any way, but typically will use a dialog or wizard.

Parameters:
shell - shell used to display dialogs
Returns:
newly created remote connection

newConnection

IRemoteConnection newConnection(org.eclipse.swt.widgets.Shell shell,
                                java.lang.String[] attrHints,
                                java.lang.String[] attrHintValues)
Create a new connection using the remote service provider new connection dialog. If attrHints and attrHintValues are provided then the dialog will attempt to use these values as the default values for the appropriate dialog fields.

Parameters:
shell - shell used to display dialog
attrHints - array containing attribute hints
attrHintValues - array containing default values for each attribute specified in attrHints
Returns:
the newly created connection
Since:
5.0

openConnectionWithProgress

void openConnectionWithProgress(org.eclipse.swt.widgets.Shell shell,
                                org.eclipse.jface.operation.IRunnableContext context,
                                IRemoteConnection connection)
Attempt to open a connection using a progress monitor. Can be called on either open or closed connections. Users should check connection.isOpen() on return to determine if the connection was actually opened.

Parameters:
shell - shell used to display dialogs
connection - connection to open
Since:
5.0

updateConnection

void updateConnection(org.eclipse.swt.widgets.Shell shell,
                      IRemoteConnection connection)
Change a connection configuration. The implementation can chose to do this in any way, but typically will use a dialog or wizard.

Parameters:
shell - shell used to display dialogs
connection - connection to modify

PTP
Release 5.0

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