blob: 081c3058048d83f8f6aea8dd843a31c8abb870de [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.internal.ccvs.ssh;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPluginDescriptor;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Status;
public class SSHPlugin extends Plugin {
public static String ID = "org.eclipse.team.cvs.ssh"; //$NON-NLS-1$
private static SSHPlugin instance;
/**
* Log the given exception along with the provided message and severity indicator
*/
public static void log(int severity, String message, Throwable e) {
getPlugin().getLog().log(new Status(severity, ID, 0, message, e));
}
/**
* Constructor for SSHPlugin
*/
public SSHPlugin(IPluginDescriptor d) {
super(d);
instance = this;
}
/**
* @see Plugin#startup()
*/
public void startup() throws CoreException {
super.startup();
Policy.localize("org.eclipse.team.internal.ccvs.ssh.messages"); //$NON-NLS-1$
}
/**
* Method getPlugin.
*/
public static SSHPlugin getPlugin() {
return instance;
}
}