Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

allensoft.javacvs.client.ui.swing
Class BrowserConnectionManager  view BrowserConnectionManager download BrowserConnectionManager.java

java.lang.Object
  extended byallensoft.javacvs.client.DefaultConnectionManager
      extended byallensoft.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 Class Summary
private static class BrowserConnectionManager.ExtConnectionTypeContents
           
 
Nested classes inherited from class allensoft.javacvs.client.DefaultConnectionManager
allensoft.javacvs.client.DefaultConnectionManager.ConnectionInstantiator
 
Field Summary
private  java.awt.Frame m_Parent
           
private static java.util.prefs.Preferences prefs
           
 
Fields inherited from class allensoft.javacvs.client.DefaultConnectionManager
 
Constructor Summary
BrowserConnectionManager()
           
 
Method Summary
 allensoft.javacvs.client.CVSConnection createConnection(allensoft.javacvs.client.CVSClient client, allensoft.javacvs.client.RepositoryLocation location, allensoft.javacvs.client.LoginManager loginManager)
          Creates a connection for the specified repository location.
protected  allensoft.javacvs.client.RepositoryDetails getRepositoryDetailsForExtConnection(allensoft.javacvs.client.RepositoryLocation location)
          Gets the repository details for the supplied location.
 void setParentFrame(java.awt.Frame frame)
           
 
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
 

Field Detail

prefs

private static java.util.prefs.Preferences prefs

m_Parent

private java.awt.Frame m_Parent
Constructor Detail

BrowserConnectionManager

public BrowserConnectionManager()
Method Detail

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.