net.sourceforge.eclipsetrader.charts
Class ChartsPlugin

java.lang.Object
  extended byAbstractUIPlugin
      extended bynet.sourceforge.eclipsetrader.charts.ChartsPlugin

public class ChartsPlugin
extends AbstractUIPlugin

The main plugin class to be used in the desktop.

See Also:
Serialized Form

Field Summary
static java.lang.String INDICATORS_EXTENSION_POINT
           
static java.lang.String OBJECTS_EXTENSION_POINT
           
static java.lang.String PLUGIN_ID
           
static java.lang.String PREFS_EXTEND_PERIOD
           
static java.lang.String PREFS_EXTEND_SCALE
           
static java.lang.String PREFS_HIDE_TABS
           
 
Constructor Summary
ChartsPlugin()
          The constructor.
 
Method Summary
static Chart createDefaultChart()
           
static IIndicatorPlugin createIndicatorPlugin(java.lang.String id)
           
static ObjectPlugin createObjectPlugin(java.lang.String id)
           
static ChartsPlugin 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 getIndicatorPlugin(java.lang.String id)
           
static java.text.NumberFormat getNumberFormat()
           
static IConfigurationElement getObjectPlugin(java.lang.String id)
           
static java.text.NumberFormat getPercentageFormat()
           
static java.text.NumberFormat getPriceFormat()
           
static void saveDefaultChart(Chart chart)
           
 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

INDICATORS_EXTENSION_POINT

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

OBJECTS_EXTENSION_POINT

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

PREFS_HIDE_TABS

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

PREFS_EXTEND_SCALE

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

PREFS_EXTEND_PERIOD

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

ChartsPlugin

public ChartsPlugin()
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 ChartsPlugin getDefault()
Returns the shared instance.


getNumberFormat

public static java.text.NumberFormat getNumberFormat()

getPercentageFormat

public static java.text.NumberFormat getPercentageFormat()

getPriceFormat

public static java.text.NumberFormat getPriceFormat()

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

createIndicatorPlugin

public static IIndicatorPlugin createIndicatorPlugin(java.lang.String id)

getIndicatorPlugin

public static IConfigurationElement getIndicatorPlugin(java.lang.String id)

createObjectPlugin

public static ObjectPlugin createObjectPlugin(java.lang.String id)

getObjectPlugin

public static IConfigurationElement getObjectPlugin(java.lang.String id)

createDefaultChart

public static Chart createDefaultChart()

saveDefaultChart

public static void saveDefaultChart(Chart chart)