Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Read-only files(How to mark them in project explorer and avoid "File X is read-only!" message)
icon5.gif  Read-only files [message #901731] Tue, 14 August 2012 11:43 Go to next message
asdf sdf is currently offline asdf sdf
Messages: 6
Registered: August 2012
Junior Member
In my projects I have a lot of read-only files and am facing two problems.

1)
First of all, I would like to mark read-only files in the project explorers view. Either as label decoration, different file icon or font modifications of the file's name, etc.

My search for a read only decoration brought me to this example, however I could not find a standard decorator nor a marketplace plugin

2)
In case I accidentally edit a read-only file and don't want to change its read-only attribute, I only get the message "File X is readonly!" and I did not find a way except closing and reopening the file to view its context again. Refresh doesn't work and other suggestions I found while searching don't seem to be part of the context menu anymore.

Thanks!
Re: Read-only files [message #901738 is a reply to message #901731] Tue, 14 August 2012 12:24 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 14.08.2012 13:43, asdf sdf wrote:
> In my projects I have a lot of read-only files and am facing two
> problems.
>
> 1)
> First of all, I would like to mark read-only files in the project
> explorers view. Either as label decoration, different file icon or
> font modifications of the file's name, etc.
>
> My search for a read only decoration brought me to
> http://wiki.eclipse.org/FAQ_What_is_a_label_decorator%3F example,
> however I could not find a standard decorator nor a marketplace plugin
I don't know of such a plug-in. You would have to implement it yourself.
>
> 2)
> In case I accidentally edit a read-only file and don't want to change
> its read-only attribute, I only get the message "File X is readonly!"
> and I did not find a way except closing and reopening the file to view
> its context again.
Not exactly sure what you mean with "context". What I see (using the
Text or Java Editor), is the file/content after I click 'No' on the dialog.

Dani
> Refresh doesn't work and other suggestions I found while searching
> don't seem to be part of the context menu anymore.
>
> Thanks!
>
Re: Read-only files [message #901746 is a reply to message #901738] Tue, 14 August 2012 12:55 Go to previous messageGo to next message
asdf sdf is currently offline asdf sdf
Messages: 6
Registered: August 2012
Junior Member
Well I only see a blank page with the specified message. No lines of code...
And I am using Juno.
Re: Read-only files [message #901762 is a reply to message #901746] Tue, 14 August 2012 13:35 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 14.08.2012 14:55, asdf sdf wrote:
> Well I only see a blank page with the specified message. No lines of
> code...
> And I am using Juno.
Then please file a bug report with exact steps to reproduce.

Dani
Re: Read-only files [message #901775 is a reply to message #901762] Tue, 14 August 2012 14:20 Go to previous messageGo to next message
asdf sdf is currently offline asdf sdf
Messages: 6
Registered: August 2012
Junior Member
I thought this is the standard behaviour...

Also note, that I only have the C/C++ edition, so I hope it's not only a CDT issue then?
Re: Read-only files [message #901792 is a reply to message #901775] Tue, 14 August 2012 15:17 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 14.08.2012 16:20, asdf sdf wrote:
> I thought this is the standard behaviour...
>
> Also note, that I only have the C/C++ edition, so I hope it's not only
> a CDT issue then?
As said, file a bug with the steps ;-)

Dani
Re: Read-only files [message #901812 is a reply to message #901792] Tue, 14 August 2012 16:11 Go to previous message
asdf sdf is currently offline asdf sdf
Messages: 6
Registered: August 2012
Junior Member
2)
It seems to be a problem with the VSS plugin (can be found at vssplugin.sourceforge.net). When I tried to reproduce it with a little sample, I found it working just like I expected...

Regarding 1) any ideas?
Previous Topic:Rally Connector
Next Topic:Toggle between source/header: Always
Goto Forum:
  


Current Time: Sat Oct 25 01:33:28 GMT 2014

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

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