1 19 20 package org.netbeans.modules.masterfs.providers; 21 22 import java.io.File ; 23 import java.io.IOException ; 24 import org.openide.filesystems.FileObject; 25 26 41 public class ProvidedExtensions implements InterceptionListener { 42 54 public ProvidedExtensions.IOHandler getMoveHandler( 55 File from, File to) { 56 return null; 57 } 58 59 71 public ProvidedExtensions.IOHandler getRenameHandler( 72 File from, String newName) { 73 return null; 74 } 75 76 87 public ProvidedExtensions.DeleteHandler getDeleteHandler(File f) { 88 return null; 89 } 90 91 92 public interface IOHandler { 93 96 void handle() throws IOException ; 97 } 98 99 public interface DeleteHandler { 100 108 boolean delete(File file); 109 } 110 111 112 public void createSuccess(FileObject fo) {} 113 public void createFailure(FileObject parent, String name, boolean isFolder) {} 114 public void beforeCreate(FileObject parent, String name, boolean isFolder) {} 115 public void deleteSuccess(FileObject fo) {} 116 public void deleteFailure(FileObject fo) {} 117 public void beforeDelete(FileObject fo) {} 118 119 120 127 public void beforeChange(FileObject fo) {} 128 } 129 | Popular Tags |