org.tcat.citd.sim.udig.bookmarks
Class BookmarksPlugin

java.lang.Object
  extended by AbstractUIPlugin
      extended by org.tcat.citd.sim.udig.bookmarks.BookmarksPlugin

public class BookmarksPlugin
extends AbstractUIPlugin

The main plugin class to be used in the desktop.


Constructor Summary
BookmarksPlugin()
          The constructor.
 
Method Summary
 BookmarkManager getBookmarkManager()
          Returns the bookmark manager for this plug-in.
static BookmarksPlugin getDefault()
          Returns the shared instance.
 ImageDescriptor getImageDescriptor(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
 void restoreFromPreferences()
          Restore the bookmarks from the plugin's preference store
 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
 void storeToPreferences()
          Stores the bookmarks to the plugin's preference store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarksPlugin

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

Returns:
The instance of this plugin

getImageDescriptor

public 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

getBookmarkManager

public BookmarkManager getBookmarkManager()
Returns the bookmark manager for this plug-in.

Returns:
the bookmark manager

restoreFromPreferences

public void restoreFromPreferences()
                            throws BackingStoreException
Restore the bookmarks from the plugin's preference store

Throws:
BackingStoreException

storeToPreferences

public void storeToPreferences()
                        throws BackingStoreException
Stores the bookmarks to the plugin's preference store

Throws:
BackingStoreException