Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » open file read only
open file read only [message #271195] Thu, 28 May 2009 07:14 Go to next message
Eclipse UserFriend
Originally posted by: emil.obermayr.guehring.de

How can I avoid typing in an opened file?

Sometimes I need files open for reading/viewing. It would be nice to
have a "read-only" option to avoid accidental changes to the file during
marking/highlighting- and cut'n'paste-operations.

Is this possible? How?
Re: open file read only [message #271212 is a reply to message #271195] Thu, 28 May 2009 13:14 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
eo wrote:
> How can I avoid typing in an opened file?
>
> Sometimes I need files open for reading/viewing. It would be nice to
> have a "read-only" option to avoid accidental changes to the file
> during marking/highlighting- and cut'n'paste-operations.
>
> Is this possible? How?
Mark the file read-only.

Dani
Re: open file read only [message #271214 is a reply to message #271212] Thu, 28 May 2009 13:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: emil.obermayr.guehring.de

Daniel Megert schrieb:

> Mark the file read-only.

That was my question... How do I do this?

In the Status-Line is a flag "insert". When I double-click it switches
to "overwrite", as expected.

When I double-click on "writable", nothing happens.
Re: open file read only [message #271215 is a reply to message #271214] Thu, 28 May 2009 13:43 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30457
Registered: July 2009
Senior Member
Use the context menu in the navigator to bring up the Properties for
resource and toggle the Read only checkbox.

eo wrote:
> Daniel Megert schrieb:
>
>> Mark the file read-only.
>
> That was my question... How do I do this?
>
> In the Status-Line is a flag "insert". When I double-click it switches
> to "overwrite", as expected.
>
> When I double-click on "writable", nothing happens.
Re: open file read only [message #271331 is a reply to message #271215] Tue, 02 June 2009 07:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: emil.obermayr.guehring.de

Ed Merks schrieb:
> Use the context menu in the navigator to bring up the Properties for
> resource and toggle the Read only checkbox.

Hm, ok. But then it is a property of the file and not a property of the
editor.

Most modern editors allow a "viewing" mode with opened files. This
should not chance the property of the file itself.

This feature is not available in Eclipse? I think I will enter a feature
request then.

Thanks for your help.
Re: open file read only [message #1722031 is a reply to message #271331] Tue, 02 February 2016 11:10 Go to previous message
chavi   is currently offline chavi Friend
Messages: 67
Registered: April 2011
Member
Hi, I also want same feature so that File opens in read only mode in Editor.
Did you find any solution of it.
Please help
Previous Topic:Error: Could not find or load main class
Next Topic:Error: Could not find org.eclipse.osgi.compatibility.state_1.0.100.v20150402-1551.jar
Goto Forum:
  


Current Time: Sat Sep 21 01:14:20 GMT 2019

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

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

Back to the top