Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


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()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


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