com.vividsolutions.jump.workbench.ui.plugin
Class AddNewFeaturesPlugIn

java.lang.Object
  extended by com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
      extended by com.vividsolutions.jump.workbench.ui.plugin.WKTPlugIn
          extended by com.vividsolutions.jump.workbench.ui.plugin.AddNewFeaturesPlugIn
All Implemented Interfaces:
PlugIn

public class AddNewFeaturesPlugIn
extends WKTPlugIn


Field Summary
static javax.swing.ImageIcon ICON
           
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.plugin.WKTPlugIn
layer
 
Constructor Summary
AddNewFeaturesPlugIn()
           
 
Method Summary
protected  void apply(FeatureCollection c, PlugInContext context)
           
protected  EnterWKTDialog createDialog(PlugInContext context)
           
static MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext)
           
 boolean execute(PlugInContext context)
          Performs the action for this plugin.
protected  Layer layer(PlugInContext context)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.plugin.WKTPlugIn
apply
 
Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
createName, execute, execute, getName, initialize, isRollingBackInvalidEdits, reportNothingToUndoYet, toActionListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ICON

public static final javax.swing.ImageIcon ICON
Constructor Detail

AddNewFeaturesPlugIn

public AddNewFeaturesPlugIn()
Method Detail

layer

protected Layer layer(PlugInContext context)
Specified by:
layer in class WKTPlugIn

execute

public boolean execute(PlugInContext context)
                throws java.lang.Exception
Description copied from interface: PlugIn
Performs the action for this plugin. For threaded plugins with dialogs, this method contains the code to invoke the dialog. If the user cancels the dialog, this method should return false to prevent the run method from being called.

Specified by:
execute in interface PlugIn
Overrides:
execute in class WKTPlugIn
Returns:
true if the action completed, false if it was aborted. Used by ThreadedPlugIns to indicate that their #run method needn't be called next.
Throws:
java.lang.Exception - if a problem occurs during plug-in execution
See Also:
ThreadedPlugIn

apply

protected void apply(FeatureCollection c,
                     PlugInContext context)
Specified by:
apply in class WKTPlugIn

createDialog

protected EnterWKTDialog createDialog(PlugInContext context)
Overrides:
createDialog in class WKTPlugIn

createEnableCheck

public static MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext)