Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.navigator
Class DeleteActionHandler.DeleteStrategy<E extends Element>

java.lang.Object
  extended by oracle.ide.navigator.DeleteActionHandler.DeleteStrategy<E>
Direct Known Subclasses:
DeleteActionHandler.NodeDeleteStrategy
Enclosing class:
DeleteActionHandler<T extends Element>

@ThreadSafe
public abstract static class DeleteActionHandler.DeleteStrategy<E extends Element>
extends java.lang.Object

A delete strategy base class that users can use to define what "delete a node" is in the user's domain. Here users can delete corresponding output files, auxilliary files that are otherwise orphaned by deleting the node. For nodes that are conceptually containers, users can delete all files and folders that constitute the container node. The class maintains a list of non-deleted files. Intended to be implemented by users.

See Also:
DeleteActionHandler.NodeDeleteStrategy

Constructor Summary
DeleteActionHandler.DeleteStrategy()
           
 
Method Summary
 void addAllToNondeleted(java.util.List<java.net.URL> urls)
           
 void addToNondeleted(java.net.URL url)
           
abstract  boolean delete(E element)
          Deletes the node and all other files relevant to the node (output files, parent directories, etc.).
 java.util.List<java.net.URL> getNondeleted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteActionHandler.DeleteStrategy

public DeleteActionHandler.DeleteStrategy()
Method Detail

delete

public abstract boolean delete(E element)
Deletes the node and all other files relevant to the node (output files, parent directories, etc.). The return value must indicate if the node was successfully deleted. If false is returned this node URL will be added to the list of nondeleted getNondeleted().

Parameters:
element - the element to be deleted
Returns:
true if succeeded in deleting, false otherwise

addToNondeleted

public final void addToNondeleted(java.net.URL url)

addAllToNondeleted

public final void addAllToNondeleted(java.util.List<java.net.URL> urls)

getNondeleted

public final java.util.List<java.net.URL> getNondeleted()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.