public interface IOpenable extends IBufferChangedListener
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this element and its buffer (if any).
|
IBuffer |
getBuffer()
Returns the buffer opened for this element, or
null
if this element does not have a buffer. |
boolean |
hasUnsavedChanges()
returns true if the associated buffer has some unsaved changes
|
boolean |
isConsistent()
Returns whether the element is consistent with its underlying resource or buffer.
|
boolean |
isOpen()
Returns whether this CFile is open.
|
void |
makeConsistent(IProgressMonitor progress)
Makes this element consistent with its underlying resource or buffer
by updating the element's structure and properties as necessary.
|
void |
makeConsistent(IProgressMonitor progress,
boolean forced) |
void |
open(IProgressMonitor progress)
Opens this element and all parent elements that are not already open.
|
void |
save(IProgressMonitor progress,
boolean force)
Saves any changes in this element's buffer to its underlying resource
via a workspace resource operation.
|
bufferChangedvoid close()
throws CModelException
CModelExceptionIBuffer getBuffer() throws CModelException
null
if this element does not have a buffer.CModelExceptionboolean hasUnsavedChanges()
throws CModelException
CModelExceptionboolean isConsistent()
throws CModelException
CModelExceptionboolean isOpen()
void makeConsistent(IProgressMonitor progress)
throws CModelException
CModelExceptionvoid makeConsistent(IProgressMonitor progress,
boolean forced)
throws CModelException
CModelExceptionvoid open(IProgressMonitor progress)
throws CModelException
CModelExceptionvoid save(IProgressMonitor progress,
boolean force)
throws CModelException
The force parameter controls how this method deals with
cases where the workbench is not completely in sync with the local file system.
CModelExceptionCopyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.