Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » get charset error
get charset error [message #242880] Thu, 20 May 2004 18:08
ken zhang is currently offline ken zhangFriend
Messages: 28
Registered: July 2009
Junior Member
The following is the error that I was getting when trying to getCharset of a
file. I don't understand why do I need to get the lock to the resource when
I am only "reading" instead of "writing". Note, the resoruce tree is locked
for modifications, is it also locked for "read"?

org.eclipse.core.internal.resources.ResourceException: The resource tree is
locked for modifications.
at
org.eclipse.core.internal.resources.WorkManager.checkIn(Work Manager.java:93)
at
org.eclipse.core.internal.resources.Workspace.prepareOperati on(Workspace.jav
a:1632)
at
org.eclipse.core.internal.resources.File.getContentDescripti on(File.java:254
)
at org.eclipse.core.internal.resources.File.getCharset(File.jav a:220)
at org.eclipse.core.internal.resources.File.getCharset(File.jav a:205)

Thanks in advance.

Ken Zhang
Previous Topic:plugin for tiles
Next Topic:Contentoutlinview for another view
Goto Forum:
  


Current Time: Thu Oct 10 23:14:38 GMT 2024

Powered by FUDForum. Page generated in 0.03305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top