是否存在与Eclipse的Workspace等效的NetBeans

时间:2023-01-24 13:42:23

I enjoy using NetBeans, especially for development with Maven, however, I've found recently that I've been working with three different branches of the same code base in different parts of the development cycle.

我喜欢使用NetBeans,尤其是使用Maven进行开发,但是,我最近发现我在开发周期的不同部分使用了相同代码库的三个不同分支。

One of the things that Eclipse can do is separate the projects into different workspaces, so I can simply start Eclipse with the workspace containing my Maven projects in the production patch branch or the trunk depending upon what I need to be working on.

Eclipse可以做的事情之一是将项目分成不同的工作区,因此我可以简单地使用包含生产补丁分支或主干中的Maven项目的工作空间启动Eclipse,具体取决于我需要处理的工作。

I'd love to accomplish this in NetBeans, but haven't found a way to do so. Any ideas?

我很想在NetBeans中实现这一目标,但还没有找到办法。有任何想法吗?

7 个解决方案

#1


I am using mac os with version 6.7.1.

我使用的是版本6.7.1的mac os。

There is the option of project group.

项目组有选项。

from File > Project group.

从文件>项目组。

in here you can create a project group based on a folder location, so any projects underneath this folder will be considered within this project group.

在此处,您可以基于文件夹位置创建项目组,因此此文件夹下的任何项目都将在此项目组中进行考虑。

When scwitched betwee project groups only projects within are displayed, and it maintanes the current status of opened files ..etc.

当在项目组之间进行切换时,只显示其中的项目,并且它维护打开的文件的当前状态..等等。

Switching between project groups doesn't require closing the IDE.

在项目组之间切换不需要关闭IDE。

Given those options I believe this would be equivalent to the workspace switching in eclipse.

鉴于这些选项,我相信这相当于eclipse中的工作区切换。

#2


I've found two things:

我发现了两件事:

First there is a "similar" feature. It involves using the userdir switch on the command line. The downside being you would need to restart your IDE rather than switching while open. I think I can live with that for the time being. I found the technique here for Windows:

首先是“类似”功能。它涉及在命令行上使用userdir开关。缺点是您需要重新启动IDE而不是在打开时切换。我想我暂时还能忍受。我在这里找到了适用于Windows的技术:

  1. Create a shortcut on your desktop to the Netbeans executable: C:\Program Files\NetBeans x.x\bin\netbeans.exe
  2. 在桌面上创建Netbeans可执行文件的快捷方式:C:\ Program Files \ NetBeans x.x \ bin \ netbeans.exe

  3. Right-click on the shortcut and click "Properties".
  4. 右键单击快捷方式,然后单击“属性”。

  5. In the "Target" textbox, add the extra parameter to the very end: --userdir C:\path\to\new_workspace
  6. 在“目标”文本框中,将额外参数添加到最后:--userdir C:\ path \ to \ new_workspace

  7. Click "OK" to exit the Properties window and double click the shortcut. Netbeans will launch and create/load the workspace at that location
  8. 单击“确定”退出“属性”窗口,然后双击快捷方式。 Netbeans将在该位置启动并创建/加载工作区

Secondly, someone has submitted a feature to allow for workspace switching (or in this case userdir switching) from the IDE itself. Perhaps this will be rolled into 7.0.

其次,有人提交了一个功能,允许从IDE本身切换工作区(或者在这种情况下是用户切换)。也许这将归结为7.0。

#3


Well Netbeans has a group so you can create a group of projects which you want to say put in a eclipse workspace otherwise.

好吧,Netbeans有一个小组,所以你可以创建一组你想说的项目放在一个日食工作区。

So when you switch a group it's like switching workpsace in eclipse

所以当你切换一个组时,就像在eclipse中切换workpsace一样

#4


I know, that this question is old, but I found it on google, while I was searching for a tool like the following: http://plugins.netbeans.org/plugin/20677/project-group-toolbar With that plugin, you can load different projects in your projects overview. So you can have two or more projects open and change to another "set" of projects.

我知道,这个问题已经过时了,但我在google上发现了这个问题,而我正在寻找类似以下的工具:http://plugins.netbeans.org/plugin/20677/project-group-toolbar有了这个插件,您可以在项目概述中加载不同的项目。因此,您可以打开两个或更多项目并更改为另一组“项目”。

#5


Neither projects or project groups do not work in a similar way as an Eclipse workspace (yet) as far as I know. When switching workspaces in Eclipse, all the files opened will be closed and the ones in the new project will be opened. In this way, all projects work as one entity. The netbeans project/project groups do not work in that way. I hope there will be such a feature soon cause that really helps if you have many windows open and you switch between projects

据我所知,项目或项目组都没有像Eclipse工作区那样工作。在Eclipse中切换工作区时,将关闭所有打开的文件,并打开新项目中的文件。通过这种方式,所有项目都作为一个实体工作。 netbeans项目/项目组不以这种方式工作。我希望很快会有这样的功能,如果您打开许多窗口并在项目之间切换,那将非常有用

#6


I'm looking for solution and finally use Project Group solution, this feature has been improved and easy to use.

我正在寻找解决方案并最终使用Project Group解决方案,此功能已得到改进且易于使用。

Userdir is a good solution at first (i tried to use it first), but "workspace switching" feature doesn't exists, so I have to use different shortcut for different workspace. Finally I used Project Group

Userdir起初是一个很好的解决方案(我试图先使用它),但“工作区切换”功能不存在,所以我必须为不同的工作区使用不同的快捷方式。最后我使用了Project Group

#7


NetBeans' equivalent is the "Project". In your project explorer you can right click on the current project and close it. Then go to File > Open Project and select a different branch. You will have to create a new project from each branch of your code.

NetBeans的等价物是“项目”。在项目资源管理器中,您可以右键单击当前项目并关闭它。然后转到文件>打开项目并选择其他分支。您必须从代码的每个分支创建一个新项目。

#1


I am using mac os with version 6.7.1.

我使用的是版本6.7.1的mac os。

There is the option of project group.

项目组有选项。

from File > Project group.

从文件>项目组。

in here you can create a project group based on a folder location, so any projects underneath this folder will be considered within this project group.

在此处,您可以基于文件夹位置创建项目组,因此此文件夹下的任何项目都将在此项目组中进行考虑。

When scwitched betwee project groups only projects within are displayed, and it maintanes the current status of opened files ..etc.

当在项目组之间进行切换时,只显示其中的项目,并且它维护打开的文件的当前状态..等等。

Switching between project groups doesn't require closing the IDE.

在项目组之间切换不需要关闭IDE。

Given those options I believe this would be equivalent to the workspace switching in eclipse.

鉴于这些选项,我相信这相当于eclipse中的工作区切换。

#2


I've found two things:

我发现了两件事:

First there is a "similar" feature. It involves using the userdir switch on the command line. The downside being you would need to restart your IDE rather than switching while open. I think I can live with that for the time being. I found the technique here for Windows:

首先是“类似”功能。它涉及在命令行上使用userdir开关。缺点是您需要重新启动IDE而不是在打开时切换。我想我暂时还能忍受。我在这里找到了适用于Windows的技术:

  1. Create a shortcut on your desktop to the Netbeans executable: C:\Program Files\NetBeans x.x\bin\netbeans.exe
  2. 在桌面上创建Netbeans可执行文件的快捷方式:C:\ Program Files \ NetBeans x.x \ bin \ netbeans.exe

  3. Right-click on the shortcut and click "Properties".
  4. 右键单击快捷方式,然后单击“属性”。

  5. In the "Target" textbox, add the extra parameter to the very end: --userdir C:\path\to\new_workspace
  6. 在“目标”文本框中,将额外参数添加到最后:--userdir C:\ path \ to \ new_workspace

  7. Click "OK" to exit the Properties window and double click the shortcut. Netbeans will launch and create/load the workspace at that location
  8. 单击“确定”退出“属性”窗口,然后双击快捷方式。 Netbeans将在该位置启动并创建/加载工作区

Secondly, someone has submitted a feature to allow for workspace switching (or in this case userdir switching) from the IDE itself. Perhaps this will be rolled into 7.0.

其次,有人提交了一个功能,允许从IDE本身切换工作区(或者在这种情况下是用户切换)。也许这将归结为7.0。

#3


Well Netbeans has a group so you can create a group of projects which you want to say put in a eclipse workspace otherwise.

好吧,Netbeans有一个小组,所以你可以创建一组你想说的项目放在一个日食工作区。

So when you switch a group it's like switching workpsace in eclipse

所以当你切换一个组时,就像在eclipse中切换workpsace一样

#4


I know, that this question is old, but I found it on google, while I was searching for a tool like the following: http://plugins.netbeans.org/plugin/20677/project-group-toolbar With that plugin, you can load different projects in your projects overview. So you can have two or more projects open and change to another "set" of projects.

我知道,这个问题已经过时了,但我在google上发现了这个问题,而我正在寻找类似以下的工具:http://plugins.netbeans.org/plugin/20677/project-group-toolbar有了这个插件,您可以在项目概述中加载不同的项目。因此,您可以打开两个或更多项目并更改为另一组“项目”。

#5


Neither projects or project groups do not work in a similar way as an Eclipse workspace (yet) as far as I know. When switching workspaces in Eclipse, all the files opened will be closed and the ones in the new project will be opened. In this way, all projects work as one entity. The netbeans project/project groups do not work in that way. I hope there will be such a feature soon cause that really helps if you have many windows open and you switch between projects

据我所知,项目或项目组都没有像Eclipse工作区那样工作。在Eclipse中切换工作区时,将关闭所有打开的文件,并打开新项目中的文件。通过这种方式,所有项目都作为一个实体工作。 netbeans项目/项目组不以这种方式工作。我希望很快会有这样的功能,如果您打开许多窗口并在项目之间切换,那将非常有用

#6


I'm looking for solution and finally use Project Group solution, this feature has been improved and easy to use.

我正在寻找解决方案并最终使用Project Group解决方案,此功能已得到改进且易于使用。

Userdir is a good solution at first (i tried to use it first), but "workspace switching" feature doesn't exists, so I have to use different shortcut for different workspace. Finally I used Project Group

Userdir起初是一个很好的解决方案(我试图先使用它),但“工作区切换”功能不存在,所以我必须为不同的工作区使用不同的快捷方式。最后我使用了Project Group

#7


NetBeans' equivalent is the "Project". In your project explorer you can right click on the current project and close it. Then go to File > Open Project and select a different branch. You will have to create a new project from each branch of your code.

NetBeans的等价物是“项目”。在项目资源管理器中,您可以右键单击当前项目并关闭它。然后转到文件>打开项目并选择其他分支。您必须从代码的每个分支创建一个新项目。