Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Eclipse project as read-only?

In a single file it can do right click > Properties > mark 'Read only' under Attributes , how can I do the same on all the project files ? I found same question from '08 but with no enough answer .

like image 438
URL87 Avatar asked Dec 01 '12 23:12

URL87


3 Answers

If all else fails just use the operating system to set the project folder as read only. Eclipse will prompt you if you try to modify a read only file.

like image 135
Kevin Bowersox Avatar answered Nov 04 '22 05:11

Kevin Bowersox


In Eclipse release 4.5.1 ("Mars"; and probably earlier releases), you can change multiple files by selecting the "src" folder and going to Properties>Resource>; then change the "Write" column under "Permissions".

In newer versions of Eclipse, you can find the option read-only under "Attributes", in Properties>Resource>;.

Eclipse src folder Attributes

like image 39
Swen Johnson Avatar answered Nov 04 '22 06:11

Swen Johnson


I don´t think Eclipse has that functionality built in. It just uses the files on the filesystem.

I think you have to do that in the filesystem of the particular OS you are using.

like image 32
Einar Sundgren Avatar answered Nov 04 '22 05:11

Einar Sundgren