Class SimpleQueryPlugIn

java.lang.Object
com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
org.openjump.core.ui.plugin.queries.SimpleQueryPlugIn
All Implemented Interfaces:
EnableChecked, Iconified, PlugIn, Recordable, ShortcutEnabled

public class SimpleQueryPlugIn extends AbstractPlugIn
SimpleQueryPlugIn is a query editor and processor. It has the following capabilities :
  1. query one or more layers
  2. attribute queries and spatial queries
  3. numerical and string functions
  4. regular expression to find strings
  5. results as a selection, a table or a new layer
Version 0.2 of the SimpleQueryPlugIn is an adaptation of the original version to the core of OpenJUMP (refactoring, internationalization)
Version:
0.2 (16 Oct 2005)
Author:
Michaël MICHAUD
  • Constructor Details

    • SimpleQueryPlugIn

      public SimpleQueryPlugIn()
  • Method Details

    • initialize

      public void initialize(PlugInContext context) throws Exception
      Description copied from interface: PlugIn
      Called when Workbench starts up to allow plugins to initialize themselves.
      Specified by:
      initialize in interface PlugIn
      Overrides:
      initialize in class AbstractPlugIn
      Parameters:
      context - context of the PlugIn
      Throws:
      Exception - if an exception occur during initialization
    • getEnableCheck

      public EnableCheck getEnableCheck()
      Description copied from class: AbstractPlugIn
      Use reflection to find an EnableCheck object defined by old method createEnableCheck in this plugin.
      Specified by:
      getEnableCheck in interface EnableChecked
      Overrides:
      getEnableCheck in class AbstractPlugIn
      Returns:
      the EnableCheck defined the old way
    • execute

      public boolean execute(PlugInContext context) throws Exception
      Description copied from class: AbstractPlugIn
      Execute the PlugIn.
      Specified by:
      execute in interface PlugIn
      Overrides:
      execute in class AbstractPlugIn
      Parameters:
      context - context of this PlugIn
      Returns:
      true if the PlugIn has been executed
      Throws:
      Exception - if an Exception occurs during execution
      See Also:
    • getName

      public String getName()
      Description copied from interface: PlugIn
      Returns a very brief description of this PlugIn e.g. for display as a menu item
      Specified by:
      getName in interface PlugIn
      Overrides:
      getName in class AbstractPlugIn
      Returns:
      the class name, minus "PlugIn", with spaces inserted at the appropriate point before each uppercase+lowercase and lowercase+uppercase combination.