在同一个包中创建一个单独的文件夹... [ECLIPSE] [英] Creating a separate Folder in the same package... [ECLIPSE]

查看:212
本文介绍了在同一个包中创建一个单独的文件夹... [ECLIPSE]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中是否可以在包中创建一个单独的文件夹?当选择新建 - >文件夹时,我的eclipse版本总是创建一个包。但我想要新的文件夹在旧的包中。

Is it possible in Eclipse to create a separate Folder in a package? When select "new --> folder", my eclipse version always creates a package. But i want the new folder to be in the old package.

如何实现?

提前感谢...

Patrick

推荐答案

如果您没有将代码放在该文件夹中,您可能想要做什么,将从构建路径中删除该文件夹。右键单击eclipse中的违规文件夹,然后选择从构建路径中排除。

What you might want to do, if you aren't putting code in that folder, is remove the folder from the build path. Right-click on the offending folder in eclipse and choose 'exclude from build path.'

或者,您可能需要不同的效果:

Or, you may want a different effect:

右键单击您的项目,然后选择添加新的源文件夹。
然后在该文件夹中,添加正确的包文件夹结构。

Right click on your project and choose add new source folder. Then in that folder, add the correct package folder structure.

您可以将同一个包中的文件位于不同的文件夹中。

You can have files in the same package located in different folders.

这篇关于在同一个包中创建一个单独的文件夹... [ECLIPSE]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆