com.raelity.jvi
Interface ViFS

All Known Implementing Classes:
DefaultViFS

public interface ViFS

jVi's interactions with files are funnelled through this interface.


Method Summary
 void edit(ViTextView tv, int n, boolean force)
          Edit the nth file.
 String getDisplayFileName(ViBuffer buf)
           
 boolean isModified(ViBuffer buf)
          Is the associtated document modified?
 boolean isReadOnly(ViBuffer buf)
          Is the associtated document read only?
 void write(ViTextView tv, boolean force)
          Write the specified "file object".
 void write(ViTextView tv, File file, boolean force)
          Write the specified text to the specified file.
 void writeAll(boolean force)
          Write all open stuff.
 

Method Detail

getDisplayFileName

String getDisplayFileName(ViBuffer buf)

isModified

boolean isModified(ViBuffer buf)
Is the associtated document modified?


isReadOnly

boolean isReadOnly(ViBuffer buf)
Is the associtated document read only?


write

void write(ViTextView tv,
           boolean force)
Write the specified "file object".


writeAll

void writeAll(boolean force)
Write all open stuff.


write

void write(ViTextView tv,
           File file,
           boolean force)
Write the specified text to the specified file. If file is null, use a dialog to get the file name.


edit

void edit(ViTextView tv,
          int n,
          boolean force)
Edit the nth file. If n < 0 then n is MRU; n == -1 is most recent.