net.sourceforge.eclipsetrader.news
Class NewsPlugin

java.lang.Object
  extended byAbstractUIPlugin
      extended bynet.sourceforge.eclipsetrader.news.NewsPlugin

public class NewsPlugin
extends AbstractUIPlugin

The main plugin class to be used in the desktop.

See Also:
Serialized Form

Field Summary
static java.lang.String FEED_RUNNING
           
static java.lang.String PLUGIN_ID
           
static java.lang.String PREFS_FOLLOW_QUOTE_FEED
           
static java.lang.String PREFS_UPDATE_INTERVAL
           
static java.lang.String PREFS_UPDATE_ON_STARTUP
           
static java.lang.String PROVIDER_EXTENSION_POINT
           
 
Constructor Summary
NewsPlugin()
          The constructor.
 
Method Summary
static NewsPlugin 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.
 void start(BundleContext context)
          This method is called upon plug-in activation
 void startFeed()
           
 void startFeedSnapshot()
           
 void startFeedSnapshot(Security security)
           
 void stop(BundleContext context)
          This method is called when the plug-in is stopped
 void stopFeed()
           
 
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

PROVIDER_EXTENSION_POINT

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

PREFS_UPDATE_ON_STARTUP

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

PREFS_FOLLOW_QUOTE_FEED

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

PREFS_UPDATE_INTERVAL

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

FEED_RUNNING

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

NewsPlugin

public NewsPlugin()
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 NewsPlugin 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

startFeed

public void startFeed()

startFeedSnapshot

public void startFeedSnapshot()

startFeedSnapshot

public void startFeedSnapshot(Security security)

stopFeed

public void stopFeed()