PTP
Release 5.0

org.eclipse.ptp.core
Class PTPCorePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ptp.core.PTPCorePlugin
All Implemented Interfaces:
BundleActivator

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


Field Summary
static java.lang.String PLUGIN_ID
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
PTPCorePlugin()
          The constructor.
 
Method Summary
static PTPCorePlugin getDefault()
          Returns the shared instance.
 IModelManager getModelManager()
          Get the model manager
 IModelPresentation getModelPresentation()
          Get the presentation manager.
 java.util.ResourceBundle getResourceBundle()
          Returns the plugin's resource bundle,
static java.lang.String getResourceString(java.lang.String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
static java.lang.String getUniqueIdentifier()
          Generate a unique identifier
 java.lang.String locateFragmentFile(java.lang.String fragment, java.lang.String file)
          Locate the fragment for our architecture.
static void log(org.eclipse.core.runtime.IStatus status)
          Create log entry from an IStatus
static void log(java.lang.String msg)
          Create log entry from a string
static void log(java.lang.Throwable e)
          Create log entry from a Throwable
 void start(BundleContext context)
          This method is called upon plug-in activation
 void stop(BundleContext context)
          This method is called when the plug-in is stopped
 
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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
See Also:
Constant Field Values
Constructor Detail

PTPCorePlugin

public PTPCorePlugin()
The constructor.

Method Detail

getDefault

public static PTPCorePlugin getDefault()
Returns the shared instance.


getResourceString

public static java.lang.String getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.


getUniqueIdentifier

public static java.lang.String getUniqueIdentifier()
Generate a unique identifier

Returns:
unique identifier string

log

public static void log(org.eclipse.core.runtime.IStatus status)
Create log entry from an IStatus

Parameters:
status -

log

public static void log(java.lang.String msg)
Create log entry from a string

Parameters:
msg -

log

public static void log(java.lang.Throwable e)
Create log entry from a Throwable

Parameters:
e -

getModelManager

public IModelManager getModelManager()
Get the model manager

Returns:
the model manager

getModelPresentation

public IModelPresentation getModelPresentation()
Get the presentation manager. This is now the model manager.

Returns:
the presentation manager

getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Returns the plugin's resource bundle,


locateFragmentFile

public java.lang.String locateFragmentFile(java.lang.String fragment,
                                           java.lang.String file)
Locate the fragment for our architecture. This should really be phased out, since there is now no guarantee that there will be local executables for the proxy server or debugger.

Parameters:
fragment -
file -
Returns:
path to "bin" directory in fragment

start

public void start(BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Specified by:
start in interface BundleActivator
Overrides:
start in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception

stop

public void stop(BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Specified by:
stop in interface BundleActivator
Overrides:
stop in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception

PTP
Release 5.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.