01: /*
02: * Gruntspud
03: *
04: * Copyright (C) 2002 Brett Smith.
05: *
06: * Written by: Brett Smith <t_magicthize@users.sourceforge.net>
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Library General Public License
10: * as published by the Free Software Foundation; either version 2 of
11: * the License, or (at your option) any later version.
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU Library General Public License for more details.
16: *
17: * You should have received a copy of the GNU Library General Public
18: * License along with this program; if not, write to the Free Software
19: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20: */
21:
22: package gruntspud.connection.local;
23:
24: import gruntspud.CVSRoot;
25: import gruntspud.connection.AbstractConnectionPlugin;
26: import gruntspud.ui.icons.IconResource;
27:
28: import javax.swing.Icon;
29:
30: /**
31: * Implementation of a <code>ConnectionPlugin</code> that uses a local external command
32: * to provide the connection to the cvs.
33: *
34: * @author magicthize
35: */
36: public class LocalConnectionPlugin extends AbstractConnectionPlugin {
37: public final static Icon LOCAL_ICON = new IconResource(
38: "gruntspud/connection/local/localicon.png",
39: LocalConnectionPlugin.class);
40:
41: /**
42: * Construct a new LocalConnectionPlugin
43: */
44: public LocalConnectionPlugin() {
45: super (LOCAL_ICON, "local",
46: new AdditionalLocalConnectionOptions(),
47: CVSRootLocalConnection.class);
48: }
49:
50: /* (non-Javadoc)
51: * @see gruntspud.connection.ConnectionPlugin#validateCVSRoot(gruntspud.CVSRoot)
52: */
53: public void validateCVSRoot(CVSRoot root)
54: throws IllegalArgumentException {
55: }
56:
57: /* (non-Javadoc)
58: * @see gruntspud.connection.ConnectionPlugin#isHostnameRequired()
59: */
60: public boolean isHostnameRequired() {
61: return false;
62: }
63:
64: /* (non-Javadoc)
65: * @see gruntspud.connection.ConnectionPlugin#isUserRequired()
66: */
67: public boolean isUserRequired() {
68: return false;
69: }
70:
71: /* (non-Javadoc)
72: * @see gruntspud.connection.ConnectionPlugin#isPortRequired()
73: */
74: public boolean isPortRequired() {
75: return false;
76: }
77: }
|