1 19 20 package org.netbeans.modules.xml.xam; 21 22 import java.io.IOException ; 23 import javax.swing.event.UndoableEditListener ; 24 25 30 31 public abstract class ModelAccess { 32 33 public abstract void addUndoableEditListener(UndoableEditListener listener); 34 public abstract void removeUndoableEditListener(UndoableEditListener listener); 35 36 public abstract void prepareForUndoRedo(); 37 public abstract void finishUndoRedo(); 38 39 public void prepareSync() { } 40 public abstract Model.State sync() throws IOException ; 41 42 public abstract void flush(); 43 44 45 private boolean autoSync = true; 46 public boolean isAutoSync() { 47 return autoSync; 48 } 49 public void setAutoSync(boolean value) { 50 autoSync = value; 51 } 52 53 58 public long dirtyIntervalMillis() { 59 return 0; 60 } 61 64 public void unsetDirty() { 65 } 67 68 } 69 | Popular Tags |