Does anyone know is there a way to open a project in Eclipse in read-only mode? If there is a lot of similar projects open it is easy to make changes to a wrong one.
有谁知道有没有办法在Eclipse中以只读模式打开一个项目?如果有很多类似的项目打开,很容易对错误的项目进行更改。
4 个解决方案
#1
5
Putting project in read-only mode is really useful, when you make another instance from the previous project. So you copy all files from old project, then make changes in the new instance. It's really simple to edit files from old project by mistake (they have the same names)!
当您从上一个项目中创建另一个实例时,将项目置于只读模式非常有用。因此,您从旧项目中复制所有文件,然后在新实例中进行更改。从错误的旧项目编辑文件非常简单(它们具有相同的名称)!
Serg if you use linux, I suggest to put all files in read only mode with chmod in terminal:
Serg如果你使用linux,我建议将所有文件放在只读模式下,并在终端中使用chmod:
sudo chmod 444 -R /path/to/your/project
After this operation Eclipse will tell you that file you are trying to edit is in read-only mode. I think that's enough to make the previous project safe :)
在此操作之后,Eclipse将告诉您正在尝试编辑的文件处于只读模式。我认为这足以使以前的项目安全:)
#2
3
One sub-optimal solution is to make the project directory read-only in the file system in the underlying OS. I'm not sure how eclipse will react though.
一个次优解决方案是使项目目录在底层操作系统的文件系统中是只读的。我不确定eclipse会如何反应。
#3
1
This feature is called "binary projects" and is provided by the eclipse plug-in developement environment (PDE). Note that this only works for eclipse plug-in project, see
此功能称为“二进制项目”,由eclipse插件开发环境(PDE)提供。请注意,这仅适用于eclipse插件项目,请参阅
Contributing to Eclipse - Principles, patterns and plug-ins
为Eclipse做贡献 - 原则,模式和插件
or
http://www.vogella.de/articles/EclipseCodeAccess/article.html#importplugins_binary
#4
-1
You can also use the close project/open project feature : close all projects and only open the one you need to work on ?
您还可以使用关闭项目/打开项目功能:关闭所有项目并仅打开您需要处理的项目?
#1
5
Putting project in read-only mode is really useful, when you make another instance from the previous project. So you copy all files from old project, then make changes in the new instance. It's really simple to edit files from old project by mistake (they have the same names)!
当您从上一个项目中创建另一个实例时,将项目置于只读模式非常有用。因此,您从旧项目中复制所有文件,然后在新实例中进行更改。从错误的旧项目编辑文件非常简单(它们具有相同的名称)!
Serg if you use linux, I suggest to put all files in read only mode with chmod in terminal:
Serg如果你使用linux,我建议将所有文件放在只读模式下,并在终端中使用chmod:
sudo chmod 444 -R /path/to/your/project
After this operation Eclipse will tell you that file you are trying to edit is in read-only mode. I think that's enough to make the previous project safe :)
在此操作之后,Eclipse将告诉您正在尝试编辑的文件处于只读模式。我认为这足以使以前的项目安全:)
#2
3
One sub-optimal solution is to make the project directory read-only in the file system in the underlying OS. I'm not sure how eclipse will react though.
一个次优解决方案是使项目目录在底层操作系统的文件系统中是只读的。我不确定eclipse会如何反应。
#3
1
This feature is called "binary projects" and is provided by the eclipse plug-in developement environment (PDE). Note that this only works for eclipse plug-in project, see
此功能称为“二进制项目”,由eclipse插件开发环境(PDE)提供。请注意,这仅适用于eclipse插件项目,请参阅
Contributing to Eclipse - Principles, patterns and plug-ins
为Eclipse做贡献 - 原则,模式和插件
or
http://www.vogella.de/articles/EclipseCodeAccess/article.html#importplugins_binary
#4
-1
You can also use the close project/open project feature : close all projects and only open the one you need to work on ?
您还可以使用关闭项目/打开项目功能:关闭所有项目并仅打开您需要处理的项目?