Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

JgPlugin.java

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.uima.jcas.jcasgenp;

import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPluginDescriptor;
import org.eclipse.core.runtime.Plugin;

/**
 * The main plugin class to be used in the desktop.
 */
00030 public class JgPlugin extends Plugin {
  // The shared instance.
  private static JgPlugin plugin;

  public static final String JCASGEN_ID = "org.apache.uima.jcas.jcasgenp"; //$NON-NLS-1$

  /**
   * The constructor.
   */
00039   public JgPlugin(IPluginDescriptor descriptor) {
    super(descriptor);
    plugin = this;
  }

  /**
   * Returns the shared instance.
   */
00047   public static JgPlugin getDefault() {
    return plugin;
  }

  /**
   * Returns the workspace instance.
   */
00054   public static IWorkspace getWorkspace() {
    return ResourcesPlugin.getWorkspace();
  }

  /**
   * Convenience method which returns the unique identifier of this plugin.
   */
00061   public static String getUniqueIdentifier() {
    return JCASGEN_ID;
  }
}

Generated by  Doxygen 1.6.0   Back to index