在 Eclipse 中处理不同的项目

发布于 2024-12-15 07:18:33 字数 166 浏览 3 评论 0原文

我结合 Eclipse(4 javascript) & 进行编程PyDev。 例如,在一个项目中,我打开了 5 个包含不同文件的选项卡。现在我需要处理另一个项目,但我不想返回到之前的草稿来查看所有必要的文件并再次打开它们,并关闭现有的文件。切换到另一个项目以查看是否有某些内容处于打开状态并保留下来有多容易?

I program in conjunction Eclipse(4 javascript) & PyDev.
For example in one project, I opened 5 tabs with different files. Now I need to work with another project, but I do not want to then return to the previous draft to look over all the necessary files and open them again, with close existing ones. How easy is it to switch to a different project to see if there was something open, so it stays?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

摘星┃星的人 2024-12-22 07:18:33

我的理解是,你想专注于目前正在做的工作。您需要在不同的环境之间切换。至少有三个选项可供选择:

  1. 使用不同的工作区(具有相同的 Eclipse 安装)。如果两者之间没有重叠,这非常有用,因此每个工作区代表不同类型的工作和要执行的上下文。
    为此,请定义 2 个工作区以及一个快捷方式或 shell 文件来为其启动 2 个 eclipse 实例。在 Windows 中,这两个可能看起来:

    start-ecl1: c:\eclipse\eclipse.exe -vm ; -数据ws1
    start-ecl2: c:\eclipse\eclipse.exe -vm ; -数据ws2
    
  2. 在同一工作区中使用不同的窗口。因此,您共享相同的目录(==工作区),但将您的工作划分为物理窗口。您只有一个 Eclipse 正在运行,但可以通过在窗口之间切换来在 2 个上下文之间切换。

    为此,请从例如包资源管理器视图中选择菜单项在新窗口中打开

    作为此方法的变体,您可以针对不同的上下文使用不同的工作集。为此,请执行以下步骤:

    • 在包资源管理器中,打开“选择工作集”对话框。
    • 在那里创建一个新的工作集,并定义哪些项目应在该工作集中可见。
    • 为其命名,然后选择工作集。
    • 因此,只有您选择的项目才会在包资源管理器中可见。

    但是,从不可见项目中打开的编辑器保持打开状态,因此这不会像下一个选项(使用 Mylyn)一样。

  3. 使用 Mylyn 和任务来定义手头的任务。上下文将由 Mylyn 即时构建,当您切换任务时,Mylyn 将为您切换上下文(打开编辑器、视图等)。

    要开始使用 Mylyn,请观看Mylyn 入门中的视频

我个人的观点是最后一个是最复杂的,如果项目彼此无关,第一个是好的。第二种最容易使用。

What I understand is, that you want to stay focused on the work you are doing at the moment. And you have different contexts you want to switch between. There are at least three options to go with:

  1. Use different workspaces (with the same Eclipse installation). This is useful if there is no overlap between the 2, so each workspace represents a different kind of work and context to do.
    To do that, define 2 workspaces, and a shortcut or shell file to start the 2 eclipse instances for them. In windows these 2 may look:

    start-ecl1: c:\eclipse\eclipse.exe -vm <jdk> -data ws1
    start-ecl2: c:\eclipse\eclipse.exe -vm <jdk> -data ws2
    
  2. Use different windows inside the same workspace. So you share the same directory (== workspace), but divide your work be the physikcal window. You have only one Eclipse running, but are able to switch between the 2 contexts by switching between the windows.

    To do that, select from the e.g. package explorer view the menu entry Open in new window.

    As a variation of this, you can use instead different working sets for different contexts. For doing that, do the following steps:

    • In the package explorer, open the "Select Working Set" dialog.
    • Create there a new working set, and define which projects should be visible in that working set.
    • Give it a name, and select the working set then.
    • As a result, only the projects you have selected are visible in the package explorer.

    However, the editors that are open from not visible projects are kept open, so this goes not as far as the next option, using Mylyn.

  3. Use Mylyn and tasks to define the task at hand. The context will be built by Mylyn on the fly, and when you switch the tasks, Mylyn will switch the context (open editors, views, ...) for you.

    To get started with Mylyn, have a look at the videos at Mylyn get started

My personal opinion is that the last one is the most elaborate, the first one is good if the projects have nothing to do with each other. The second one is easiest to use.

简单 2024-12-22 07:18:33

Mylyn 就是您正在寻找的。如果您在互联网上搜索,会有很多可用的教程。
我最喜欢的文章之一是http://www.vogella.de/articles/Mylyn/article。 html

它基本上是一个默认安装到某些 eclipse 包中的 eclipse 插件。如果您没有,可以使用此更新站点 http://download.eclipse.org/mylyn 安装/releases/latest

希望有帮助:)

Mylyn is what you are looking for. If you search the internet there's a lot of tutorials available.
One of my favorite is http://www.vogella.de/articles/Mylyn/article.html

Its basically an eclipse plug-in installed by default to some eclipse packages. If you dont have one you can install using this update site http://download.eclipse.org/mylyn/releases/latest

Hope it helps :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文