KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > ssh > SSHPlugin


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.ssh;
12 import org.eclipse.core.runtime.Plugin;
13 import org.eclipse.core.runtime.Status;
14 public class SSHPlugin extends Plugin {
15     
16     public static String JavaDoc ID = "org.eclipse.team.cvs.ssh"; //$NON-NLS-1$
17

18     private static SSHPlugin instance;
19     
20     /**
21      * Log the given exception along with the provided message and severity indicator
22      */

23     public static void log(int severity, String JavaDoc message, Throwable JavaDoc e) {
24         getPlugin().getLog().log(new Status(severity, ID, 0, message, e));
25     }
26     
27     /**
28      * Constructor for SSHPlugin
29      */

30     public SSHPlugin() {
31         super();
32         instance = this;
33     }
34     
35     /**
36      * Method getPlugin.
37      */

38     public static SSHPlugin getPlugin() {
39         return instance;
40     }
41
42 }
43
Popular Tags