1 19 package org.netbeans.modules.versioning.spi; 20 21 import java.io.File ; 22 import java.io.IOException ; 23 24 29 public abstract class VCSInterceptor { 30 31 35 42 public boolean beforeDelete(File file) { 43 return false; 44 } 45 46 54 public void doDelete(File file) throws IOException { 55 } 56 57 62 public void afterDelete(File file) { 63 } 64 65 69 77 public boolean beforeMove(File from, File to) { 78 return false; 79 } 80 81 88 public void doMove(File from, File to) throws IOException { 89 } 90 91 98 public void afterMove(File from, File to) { 99 } 100 101 105 115 public boolean beforeCreate(File file, boolean isDirectory) { 116 return false; 117 } 118 119 126 public void doCreate(File file, boolean isDirectory) throws IOException { 127 } 128 129 135 public void afterCreate(File file) { 136 } 137 138 142 147 public void afterChange(File file) { 148 } 149 150 155 public void beforeChange(File file) { 156 } 157 158 } 159 | Popular Tags |