java.lang.Object
allensoft.javacvs.client.DefaultConnectionManager
allensoft.javacvs.client.ui.swing.BrowserConnectionManager
- All Implemented Interfaces:
- allensoft.javacvs.client.CVSConnectionManager
- public class BrowserConnectionManager
- extends allensoft.javacvs.client.DefaultConnectionManager
Connection manger that displays a dialog asking user how to connect to ext repository locations
when this has not been defined before.
| Nested classes inherited from class allensoft.javacvs.client.DefaultConnectionManager |
allensoft.javacvs.client.DefaultConnectionManager.ConnectionInstantiator |
| Methods inherited from class allensoft.javacvs.client.DefaultConnectionManager |
createExtConnection, createExternalRSHConnection, createExternalSSHConnection, createInternalSSHConnection, createLocalConnection, createLoginConnection, createPServerConnection, getExtCommand, getExternalRSHCommand, getExternalRSHCommandPattern, getExternalSSHCommand, getExternalSSHCommandPattern, getLocalServerCommand, setExternalRSHCommandPattern, setExternalSSHCommandPattern, setLocalServerCommand |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prefs
private static java.util.prefs.Preferences prefs
m_Parent
private java.awt.Frame m_Parent
BrowserConnectionManager
public BrowserConnectionManager()
createConnection
public allensoft.javacvs.client.CVSConnection createConnection(allensoft.javacvs.client.CVSClient client,
allensoft.javacvs.client.RepositoryLocation location,
allensoft.javacvs.client.LoginManager loginManager)
throws allensoft.javacvs.client.CVSConnectionException
- Description copied from class:
allensoft.javacvs.client.DefaultConnectionManager
- Creates a connection for the specified repository location. If a login is required then use
the supplied login manager to get the login details from the user.
setParentFrame
public void setParentFrame(java.awt.Frame frame)
getRepositoryDetailsForExtConnection
protected allensoft.javacvs.client.RepositoryDetails getRepositoryDetailsForExtConnection(allensoft.javacvs.client.RepositoryLocation location)
throws allensoft.javacvs.client.CVSConnectionException
- Description copied from class:
allensoft.javacvs.client.DefaultConnectionManager
- Gets the repository details for the supplied location. This is required for creating ext and server connections.
By default this just return
RepositoryDetails.get(location). However, subclasses may like to define
a different behaviour. For example, if details have not yet been defined then may be in the case of a GUI interface
it would be nice to ask the user to decide how they want to connect.