• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dealing With Read Only Files In Eclipse

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I accidentally try to modify a read only file it displays a warning page that the file is read only. Can I get back to the file contents without closing it and reopenning the file?
Are there any settings in Eclipse that control what how it handles modifying read only files?
There must be a better way than closing and reopenning the file.
Thanks for the help.
Aaron
[ January 15, 2004: Message edited by: A. Hanson ]
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by A. Hanson:
When I accidentally try to modify a read only file it displays a warning page that the file is read only. Can I get back to the file contents without closing it and reopenning the file?


Yes - "Revert File" (second entry in the context menu).
Hope this helps...
 
Aaron Hanson
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using the most recent milestone of ver3 and I'm not getting the revert option. I don't get the context menu by left clicking on the 'read only' page and it's greyed out in the file menu.
Any other ideas?
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you get the option on other files? I didn't try it on read-only ones. Might be a bug...
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any way to convince eclipse to prevent me from modifying a read-only file? That would be my preference. If I want to modify it, I should check it out.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://faq.javaranch.com/java/DontWakeTheZombies

Eclipse asks you if you want to modify read-only files. Say "no" if you don't want to.
 
rks ii
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I was using bad test data -- my file wasn't as read-only as I thought.
 
reply
    Bookmark Topic Watch Topic
  • New Topic