| /******************************************************************************* |
| * Copyright (c) 2000, 2004 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.jdt.astview; |
| |
| import org.eclipse.core.resources.IWorkspace; |
| import org.eclipse.core.resources.ResourcesPlugin; |
| import org.eclipse.core.runtime.IPluginDescriptor; |
| |
| import org.eclipse.ui.plugin.AbstractUIPlugin; |
| |
| public class ASTViewPlugin extends AbstractUIPlugin { |
| |
| private static ASTViewPlugin fDefault; |
| |
| public ASTViewPlugin(IPluginDescriptor descriptor) { |
| super(descriptor); |
| fDefault = this; |
| } |
| |
| /** |
| * Returns the shared instance. |
| */ |
| public static ASTViewPlugin getDefault() { |
| return fDefault; |
| } |
| |
| /** |
| * Returns the workspace instance. |
| */ |
| public static IWorkspace getWorkspace() { |
| return ResourcesPlugin.getWorkspace(); |
| } |
| |
| } |