1 19 package org.netbeans.modules.localhistory.store; 20 21 import java.beans.PropertyChangeListener ; 22 import java.io.File ; 23 24 28 public interface LocalHistoryStore { 30 31 32 35 public String PROPERTY_CHANGED = "LocalHistoryStore.changed"; 37 38 40 45 public void fileCreate(File file, long ts); 46 47 52 public void fileDelete(File file, long ts); 53 54 61 public void fileCreateFromMove(File from, File to, long ts); 62 63 69 public void fileDeleteFromMove(File from, File to, long ts); 70 71 76 public void fileChange(File file, long ts); 77 78 79 81 88 public void setLabel(File file, long ts, String label); 89 90 92 98 public void addPropertyChangeListener(PropertyChangeListener l); 99 100 106 public void removePropertyChangeListener(PropertyChangeListener l); 107 108 109 111 117 public StoreEntry[] getStoreEntries(File file); 118 119 127 public StoreEntry getStoreEntry(File file, long ts); 128 129 137 public StoreEntry[] getFolderState(File root, File [] files, long ts); 138 139 145 public StoreEntry[] getDeletedFiles(File root); 146 147 155 public void deleteEntry(File file, long ts); 156 157 164 public void cleanUp(long ttl); 165 } 166 | Popular Tags |