PTP
Release 5.0

org.eclipse.ptp.remote.ui
Class RemoteUIServicesUtils

java.lang.Object
  extended by org.eclipse.ptp.remote.ui.RemoteUIServicesUtils

public class RemoteUIServicesUtils
extends Object

Convenience methods for handling various actions involving IRemoteUIServices.

Since:
5.0
See Also:
IRemoteUIServices, IRemoteUIFileManager, IRemoteUIConnectionManager, RemoteServicesDelegate

Constructor Summary
RemoteUIServicesUtils()
           
 
Method Summary
static URI browse(org.eclipse.swt.widgets.Shell shell, URI current, RemoteServicesDelegate delegate, boolean remote, boolean readOnly, boolean dir)
          Opens a browse dialog using the indicated remote or local service and connection.
static void setConnectionHints(RemoteConnectionWidget connectionWidget, IRemoteConnection connection)
          Used to configure the default host and port in the wizard used for choosing a resource manager connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteUIServicesUtils

public RemoteUIServicesUtils()
Method Detail

browse

public static URI browse(org.eclipse.swt.widgets.Shell shell,
                         URI current,
                         RemoteServicesDelegate delegate,
                         boolean remote,
                         boolean readOnly,
                         boolean dir)
                  throws URISyntaxException
Opens a browse dialog using the indicated remote or local service and connection.

Parameters:
shell - for the dialog
current - initial uri to display
delegate - containing remote services data
remote - whether to use the remote or the local connection and service provided by the delegate
readOnly - whether to disallow the user to type in a path (default is true)
dir - whether to browse/return a directory (default is file)
Returns:
the selected file path as URI or null if canceled
Throws:
URISyntaxException

setConnectionHints

public static void setConnectionHints(RemoteConnectionWidget connectionWidget,
                                      IRemoteConnection connection)
                               throws URISyntaxException
Used to configure the default host and port in the wizard used for choosing a resource manager connection.

Parameters:
connectionWidget - the widget allowing the user to choose the connection
connection - name of the connection
Throws:
URISyntaxException
See Also:
RemoteConnectionWidget

PTP
Release 5.0

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