/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the CvsCommitCallback module. * The Initial Developer of the Original Code is ADC Software Systems Ireland Limited. * Portions created by ADC Software Systems Ireland Limited are Copyright (C) 2003. * All Rights Reserved. * * Contributor(s): ADC Software Systems Ireland Limited. */ package org.openide.explorer; import org.openide.nodes.Node; /** * Interface to allow custom behaviour in explorer when delete is * performed. An instance that changes the confirmation or * delete behaviour can be registered on the system filesystem * and will be found via Lookup. If no instance is registered * the default behaviour will be used. * * @author ADC Software Systems Ireland Limited */ public interface DeleteHandler { /** * Confirm that the nodes should be deleted. * * @param nodes the nodes to be deleted * * @return true if the delete should proceed, * false if not */ boolean confirmDelete(Node nodes[]); /** * Performs the actual delete operation. * * @param nodes the nodes to be deleted */ void performDelete(Node nodes[]); }