|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOpenable
An openable is an element that can be opened, saved, and closed. An openable might or might not have an associated buffer.
Method Summary | |
---|---|
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. |
Methods inherited from interface org.eclipse.cdt.core.model.IBufferChangedListener |
---|
bufferChanged |
Method Detail |
---|
void close() throws CModelException
CModelException
IBuffer getBuffer() throws CModelException
null
if this element does not have a buffer.
CModelException
boolean hasUnsavedChanges() throws CModelException
CModelException
boolean isConsistent() throws CModelException
CModelException
boolean isOpen()
void makeConsistent(IProgressMonitor progress) throws CModelException
CModelException
void makeConsistent(IProgressMonitor progress, boolean forced) throws CModelException
CModelException
void open(IProgressMonitor progress) throws CModelException
CModelException
void 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.
CModelException
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |