如何将 Eclipse (helios) 项目移动到不同的工作区?
首先,Eclipse 不是我的原生 IDE —— 我对它还算不上熟练。我在工作区中设置了一个项目,该项目实际上位于另一个客户项目的目录中(我并没有真正遵循整个工作区/项目的情况),事实上,现在我什至找不到要打开的 Eclipse 工作区文件它。
我想做的是:
打开我的 Eclipse 项目(/workspace?)——我知道所有文件在磁盘上的位置,只是不知道要打开什么才能在 Eclipse 中查看它们——并且
将我的项目移动到新的工作区,这我想我会放在一个通用的 Eclipse-y 地方,并且让该工作区引用我的所有 Eclipse 项目。
(这是正确的方法吗?Eclipse 不喜欢我是一个单项目==单工作空间的人吗?)
请教育我有关 Eclipse Way 的知识,以便我可以继续编写代码。
谢谢!
First, Eclipse is not my native IDE -- I'm barely a n00b with it. I set up a project in a workspace that was actually in the directory of another client's project (I didn't really follow the whole workspace/project thing) and, in fact, now I can't even find the Eclipse workspace file to open it.
What I'd like to do is:
Open my eclipse project (/workspace?) -- I know where all the files are on disk, just not what to open in order to see them in Eclipse -- and
Move my project to a new workspace, which I guess I will put in a generic Eclipse-y place, and have that one workspace reference all my Eclipse projects.
(Is that the right way to do it? Does Eclipse dislike me being a one-project == one-workspace kind of guy?)
Please educate me regarding The Eclipse Way so that I can get back to work writing code.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Eclipse 中的一个工作空间(即一个目录)大致包含:
当然,您可以拥有任意多个工作空间(但只能有一个)一次打开)并且项目也可以是不同工作区的一部分。
如果您知道源代码在哪里并且想要将它们移动到新的工作区,这里有一个可能的解决方案:
我不知道这是否是最佳实践,但我通常做的事情如下:
这样,每次我更改公共库时,每个工作区中的公共库都是最新的。
Roughly a workspace (which is a directory) in Eclipse contains:
You can of course have as many workspaces as you want (but only one can be opened at a time) and a project can also be part of different workspaces.
If you know where your sources are and want to move them to a new workspace here is a possible solution:
I don't know if it's a best practice or not but what I usually do is the following:
This way each time I change my commons library it's up to date in every workspace.
如果您想申请
您可以执行以下操作:
1)复制eclipse桌面快捷方式
2)通过附加“-dataworkspaceLocation”来修改快捷方式
If you want to apply
You could to the following:
1) Copy the eclipse desktop shorcut
2) Modify the shortcut by appending "-data workspaceLocation "