KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > core > connection > ExtConnectionMethod


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.internal.ccvs.core.connection;
12
13  
14 import org.eclipse.team.internal.ccvs.core.*;
15
16 public class ExtConnectionMethod implements IConnectionMethod {
17     /**
18      * @see IConnectionMethod#getName
19      */

20     public String JavaDoc getName() {
21         return "ext"; //$NON-NLS-1$
22
}
23     
24     /**
25      * @see IConnectionMethod#createConnection
26      */

27     public IServerConnection createConnection(ICVSRepositoryLocation repositoryRoot, String JavaDoc password) {
28         if(password==null){
29             password=""; //$NON-NLS-1$
30
}
31         return new ExtConnection(repositoryRoot, password);
32     }
33     
34     public void disconnect(ICVSRepositoryLocation location) {
35     }
36 }
37
Popular Tags