public boolean isReadOnly() { return storage.isReadOnly(); } public String getName() {
public boolean isReadOnly() { return storage.isReadOnly(); }
@Override public boolean isReadOnly() { return storage.isReadOnly(); }
@Override public boolean isReadOnly() { return storage.isReadOnly(); }
public boolean isReadOnly() { return storage.isReadOnly(); }
/** * Updates the internal cache for the given input. * * @param input the input whose cache will be updated * @throws CoreException if the storage cannot be retrieved from the input * @since 2.0 */ protected void updateCache(IStorageEditorInput input) throws CoreException { StorageInfo info= (StorageInfo) getElementInfo(input); if (info != null) { try { IStorage storage= input.getStorage(); if (storage != null) { boolean readOnly= storage.isReadOnly(); info.fIsReadOnly= readOnly; info.fIsModifiable= !readOnly; } } catch (CoreException x) { handleCoreException(x, TextEditorMessages.StorageDocumentProvider_updateCache); } info.fUpdateCache= false; } }
/** * Updates the internal cache for the given input. * * @param input the input whose cache will be updated * @throws CoreException if the storage cannot be retrieved from the input * @since 2.0 */ protected void updateCache(IStorageEditorInput input) throws CoreException { StorageInfo info= (StorageInfo) getElementInfo(input); if (info != null) { try { IStorage storage= input.getStorage(); if (storage != null) { boolean readOnly= storage.isReadOnly(); info.fIsReadOnly= readOnly; info.fIsModifiable= !readOnly; } } catch (CoreException x) { handleCoreException(x, TextEditorMessages.StorageDocumentProvider_updateCache); } info.fUpdateCache= false; } }