The force
parameter controls how this method deals with cases where the workbench is not completely in sync with the local file system. If false
is specified, this method will only attempt to overwrite a corresponding file in the local file system provided it is in sync with the workbench. This option ensures there is no unintended data loss; it is the recommended setting. However, if true
is specified, an attempt will be made to write a corresponding file in the local file system, overwriting any existing one if need be. In either case, if this method succeeds, the resource will be marked as being local (even if it wasn't before).
Has no effect if this buffer is read-only or if the buffer is closed.
@param progress the progress monitor to notify
@param force a boolean
flag indicating how to deal with resourceinconsistencies.
@exception JavaModelException if an error occurs writing the bufferto the underlying resource
@see org.eclipse.core.resources.IFile#setContents(java.io.InputStream,boolean,boolean,org.eclipse.core.runtime.IProgressMonitor)
|
|