Method Summary |
|
protected void | beginMdrTransation() |
public void | destroy() Destroy this model causing it to clean up all its references. |
protected void | endMdrTransaction() |
public void | fileRenamed(String oldName, String newName, String ext, FileObject file, boolean remove) Called when a file in the project is renamed by the user. |
public void | fireModelChanged() |
public void | flush() Cause the model to flush any model changes down to the underlying souce buffers as needed. |
abstract public void | flushImpl() |
public void | flushNonJavaUnits() Should only be used if you are certain this will not cause a problem. |
abstract public void | flushNonJavaUnitsImpl() |
abstract public ParserAnnotation[] | getErrors() |
public FileObject | getFile() Get the primary FileObject that this Model is abstracting. |
protected static Model | getInstance(FileObject file, Class modelSetType, boolean forceCreate) |
protected static Model | getModel(FileObject file) |
public ModelSet | getOwner() Get the owning ModelSet for this Model. |
public Project | getProject() |
public UndoManager | getUndoManager() Get the undo manager associated with this model. |
public FileObject | getWebFolder() Get the folder within the owning Project that holds the web source files.
the web source folder. |
public boolean | isValid() Return true ONLY if I have an owner and all my file objects are valid.
I had to add this in order to handle issues with threading, queue on different threads,
during refactoring. |
abstract public boolean | isWriteLocked() |
public void | resetOwner() ONLY called when my parent is being destroy'ed, in order to make sure there are no contexts
active while client views are updating during event notification of models being destroyed. |
abstract public void | saveUnits() |
public void | sourceUnitModelDirtied(SourceUnit unit) |
public void | sourceUnitSaved(SourceUnit unit) |
public void | sourceUnitSourceDirtied(SourceUnit unit) |
public void | sync() Cause the model to synchronize its state with the underlying source buffers as needed. |
abstract protected void | syncImpl() |
public String | toString() Provide for an easier string to be displayed when this object is seen in an object inspector. |
public void | toString(StringBuffer buffer) Subclasses should override this to add extra information desired for the string to be displayed when this object is seen in an object inspector. |
abstract public UndoEvent | writeLock(String description) Lock the entire model for write access. |
abstract public void | writeUnlock(UndoEvent event) Unlock a previously locked model. |