Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.compare
Interface IEditableContentExtension

All Known Implementing Classes:
DocumentRangeNode, ResourceNode, StructureRootNode

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.

Since:
3.3
See Also:
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

isReadOnly

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.

Returns:
whether the typed element is read-only

validateEdit


IStatus validateEdit(
Shell shell)
If the element is read-only, this method should be called to attempt to make it writable.

Parameters:
shell - a shell used to prompt the user if required.
Returns:
a status object that is 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.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire