org.openjump.core.apitools
Class PlugInContextTools

java.lang.Object
  extended by org.openjump.core.apitools.ToolToMakeYourLifeEasier
      extended by org.openjump.core.apitools.PlugInContextTools

public class PlugInContextTools
extends ToolToMakeYourLifeEasier

Class to easily extract a PlugInContext object out of diverse kinds of objects.

Version:
$Revision: 1.8 $
Author:
Ole Rahn

FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement

Constructor Summary
PlugInContextTools()
           
 
Method Summary
static PlugInContext getContext(AbstractCursorTool tool)
          Get the PlugIn context out of an AbstractCursorTool.
static PlugInContext getContext(LayerViewPanel layerViewPanel)
          Experimental: Get the PlugIn context out of an LayerViewPanel.
static PlugInContext getContext(PlugInContext oldContext)
          Get the PlugIn context out of a PlugInContext (get a refreshed "snapshot").
static PlugInContext getContext(ToolboxDialog toolbox)
          Get the PlugIn context out of a toolbox.
static PlugInContext getContext(WorkbenchContext wbContext)
          Get the PlugIn context out of a WorkbenchContext.
static PlugInContext getContext(WorkbenchFrame wbFrame)
          Get the PlugIn context out of a WorkbenchFrame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlugInContextTools

public PlugInContextTools()
Method Detail

getContext

public static PlugInContext getContext(ToolboxDialog toolbox)
Get the PlugIn context out of a toolbox.

Returns:
the current plugIn context

getContext

public static PlugInContext getContext(WorkbenchContext wbContext)
Get the PlugIn context out of a WorkbenchContext.

Returns:
the current plugIn context

getContext

public static PlugInContext getContext(WorkbenchFrame wbFrame)
Get the PlugIn context out of a WorkbenchFrame.

Returns:
the current plugIn context

getContext

public static PlugInContext getContext(PlugInContext oldContext)
Get the PlugIn context out of a PlugInContext (get a refreshed "snapshot").

Returns:
the current plugIn context

getContext

public static PlugInContext getContext(AbstractCursorTool tool)
Get the PlugIn context out of an AbstractCursorTool.

Returns:
the current plugIn context

getContext

public static PlugInContext getContext(LayerViewPanel layerViewPanel)
Experimental: Get the PlugIn context out of an LayerViewPanel.

Returns:
the current plugIn context