net.sourceforge.eclipsetrader.trading
Class TradingPlugin

java.lang.Object
  extended byAbstractUIPlugin
      extended bynet.sourceforge.eclipsetrader.trading.TradingPlugin

public class TradingPlugin
extends AbstractUIPlugin

The main plugin class to be used in the desktop.

See Also:
Serialized Form

Field Summary
static java.lang.String ALERTS_EXTENSION_POINT
           
static java.lang.String PLUGIN_ID
           
static java.lang.String SYSTEM_WIZARDS_EXTENSION_POINT
           
static java.lang.String SYSTEMS_EXTENSION_POINT
           
 
Constructor Summary
TradingPlugin()
          The constructor.
 
Method Summary
static AlertPlugin createAlertPlugin(java.lang.String id)
           
static TradingSystemPlugin createTradingSystemPlugin(java.lang.String id)
           
static TradingSystemPlugin createTradingSystemPlugin(TradingSystem system)
           
static java.lang.String getAlertPluginName(java.lang.String id)
           
static IConfigurationElement[] getAlertPluginPreferencePages(java.lang.String id)
           
static TradingPlugin getDefault()
          Returns the shared instance.
static ImageDescriptor getImageDescriptor(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
static IConfigurationElement[] getTradingSystemPluginPreferencePages(java.lang.String id)
           
static java.util.List getTradingSystemPlugins()
           
static void logException(java.lang.Exception e)
           
 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_ID

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

ALERTS_EXTENSION_POINT

public static final java.lang.String ALERTS_EXTENSION_POINT
See Also:
Constant Field Values

SYSTEMS_EXTENSION_POINT

public static final java.lang.String SYSTEMS_EXTENSION_POINT
See Also:
Constant Field Values

SYSTEM_WIZARDS_EXTENSION_POINT

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

TradingPlugin

public TradingPlugin()
The constructor.

Method Detail

start

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

Throws:
java.lang.Exception

stop

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

Throws:
java.lang.Exception

getDefault

public static TradingPlugin getDefault()
Returns the shared instance.


getImageDescriptor

public static ImageDescriptor getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path.

Parameters:
path - the path
Returns:
the image descriptor

createAlertPlugin

public static AlertPlugin createAlertPlugin(java.lang.String id)

getAlertPluginName

public static java.lang.String getAlertPluginName(java.lang.String id)

getAlertPluginPreferencePages

public static IConfigurationElement[] getAlertPluginPreferencePages(java.lang.String id)

getTradingSystemPlugins

public static java.util.List getTradingSystemPlugins()

createTradingSystemPlugin

public static TradingSystemPlugin createTradingSystemPlugin(TradingSystem system)

createTradingSystemPlugin

public static TradingSystemPlugin createTradingSystemPlugin(java.lang.String id)

getTradingSystemPluginPreferencePages

public static IConfigurationElement[] getTradingSystemPluginPreferencePages(java.lang.String id)

logException

public static void logException(java.lang.Exception e)