IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.ras.impord
Class ImportPlugin

java.lang.Object
  extended byorg.eclipse.core.runtime.Plugin
      extended bycom.ibm.xtools.ras.impord.ImportPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class ImportPlugin
extends org.eclipse.core.runtime.Plugin

The main RAS import plugin class. It provides access to the primary RAS export interfaces IImportService and IImportDataModelFactory.

See Also:
IImportService, IImportDataModelFactory

Field Summary
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
ImportPlugin()
          The constructor.
 
Method Summary
 org.osgi.framework.BundleContext getBundleContext()
          Retrieves the bundle context for this plugin.
static ImportPlugin getDefault()
          Retrieves the shared instance of the RAS Import Plugin
static IImportDataModelFactory getImportDataModelFactory()
          Retrieves the singleton import data model factory
static IImportService getImportService()
          Retrieves the shared instance of the import service
static String getPluginId()
          Retrieves the unique identifier of this plug-in.
 void start(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImportPlugin

public ImportPlugin()
The constructor. [Eclipse 3.0] Bundles have to have a default constructor.

See Also:
Plugin.Plugin()
Method Detail

getDefault

public static ImportPlugin getDefault()
Retrieves the shared instance of the RAS Import Plugin

Returns:
the shared instance of the ImportPlugin

getPluginId

public static String getPluginId()
Retrieves the unique identifier of this plug-in.

Returns:
A non-empty string which is unique within the plug-in registry.

getImportService

public static IImportService getImportService()
Retrieves the shared instance of the import service

Returns:
the import service

getImportDataModelFactory

public static IImportDataModelFactory getImportDataModelFactory()
Retrieves the singleton import data model factory

Returns:
the import data model factory to create import data models

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Throws:
Exception

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()
Retrieves the bundle context for this plugin. This is required to deploy plugins.

Returns:
the bundle context to help deploy plugins.

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.