English 中文(简体)
在剪贴上指向其它工程目录的剪贴板中创建工程
原标题:Create a Project in Eclipse that points to other Project s directory

我在剪贴板上有一个项目(实验项目1), 其中包含一个“ / 样本” 文件夹。 / 样本文件夹包含样本项目 。

我想做的是, 我想在日光圈导入任何样本项目( 试样1), 以便日蚀能连接到项目1 的/ 样本目录。 因此, 我在样本1 中所做的任何修改 都会更新项目1 的/ 样本文件夹 。

最佳回答

Eclipse 有链接文件/ 文件夹的概念 。 见 < a href=" http://help. eclipse.org/ indigo/index.jsp? politict=/ org. eclipse.platform.doc. user/task/task- 45.htm" rel = "no follow" > this 。 这是你们要找的吗?

问题回答

当从外部对工程源文件进行修改时, 剪贴板会识别外部对项目源文件的更改, 它会促使您重新装入它, 所以这不应该是一个问题, 即使您同时将文件夹作为两个独立项目的一部分打开。 我不喜欢日蚀时的编辑, 但有时是因为其他原因使用它, 所以我总是这样做( 外部编辑我从日蚀时打开的文件) 。 如果您认为击打 F5 并不多, 它相对是闲散的 。

WRT 连接两个, 在 Linux 日食尊重( 软) 链接上, 这样您就可以使用, 例如 :

ln -s project1/sample1 sample

在您的工程目录中。

在 OSX 上也是如此。 我相信, 更新的 Windows OS S 有一定的等效, 但不要问我它是什么( 概念是“ 软链接 ” 或“ ym( bolic) 链接 ” ) 。 如果您正在使用 cygwin s msys shell, < code> ln may 在那里工作 。

http://en.wikipedia.org/wiki/Symblic_link

WRT到Windows(和cygwin)都有细节。





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.