|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEditableContentExtension
Extends the IEditableContent interface to support validate edit.
Clients should only use this interface if they obtained the content
from an IStreamContentAccessor. If content was obtained through an
ISharedDocumentAdapter then validation should be performed through
the IDocumentProviderExtension interface.
IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], Object)| Method Summary | |
|---|---|
boolean |
isReadOnly()
Return whether the typed element being displayed is read-only. a read-only element will require a call to validateEdit before the element can be modified on disk. |
IStatus |
validateEdit(Shell shell)
If the element is read-only, this method should be called to attempt to make it writable. |
| Method Detail |
|---|
boolean isReadOnly()
IStatus validateEdit(Shell shell)
shell - a shell used to prompt the user if required.
OK if things are fine,
otherwise a status describing reasons why modifying the given files is not
reasonable. A status with a severity of CANCEL is returned
if the validation was canceled, indicating the edit should not proceed.
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.