简体   繁体   English

在Eclipse的Project Explorer中对文件进行分组

[英]Grouping Files in Project Explorer in Eclipse

I am newbie to Eclipse, I am planning to use it for AVR development with WinAVR and gcc. 我是Eclipse的新手,我打算将其用于WinAVR和gcc的AVR开发。 The feature I am looking for is the grouping of different files in the project, like all headers together, all source files together and all files excluded from the build together etc. 我要寻找的功能是项目中不同文件的分组,例如所有标头在一起,所有源文件在一起以及所有从构建中排除的文件,等等。

I tried AVR Studio from Atmel, it has this grouping feature but it lacks several other features which Eclipse supports. 我尝试过Atmel的AVR Studio,它具有此分组功能,但缺少Eclipse支持的其他几个功能。 Any help to configure Eclipse Project explorer to display the project files in this way would be appreciated and helpful for me to decide the IDE to use. 对于将Eclipse Project Explorer配置为以这种方式显示项目文件的任何帮助,将对我决定使用的IDE有所帮助。

Note: I know that I can manually add different folders for each of these groups and move the files, but that moves the physical files, and breaks the relative path in the code, and other comilers/IDE's. 注意:我知道我可以为每个组手动添加不同的文件夹并移动文件,但是这会移动物理文件,并破坏代码和其他编译器/ IDE中的相对路径。 I am looking for logical grouping of files. 我正在寻找文件的逻辑分组。

Unfortunately there is no general way for a user to configure the grouping in the Project Explorer, the grouping is setup based on the code that controls the content (ie CDT, JDT, etc). 不幸的是,用户没有在Project Explorer中配置分组的通用方法,分组是根据控制内容的代码(即CDT,JDT等)设置的。 I think it would be interesting to have this feature, but it's not clear the UI that can be used to specify it. 我认为具有此功能会很有趣,但是尚不清楚可用于指定它的UI。 You are welcome to submit an enhancement request to add this to the Eclipse Platform UI project. 欢迎您提交增强请求,以将其添加到Eclipse Platform UI项目。 And giving an example of how it's done in another product would be helpful. 并举例说明如何在其他产品中完成该操作将很有帮助。

Thanks Francis, looking at your profile I think I found the right person to solve my issue :) I have opened it as a bug (as I could not find a feature request in bugzila) Bug 296514 - Logical Grouping Files in Project Explorer in Eclipse 谢谢弗朗西斯,查看您的个人资料,我认为我已经找到了解决问题的合适人选:)我已将其打开为错误(因为我在bugzila中找不到功能请求) 错误296514 -Eclipse的Project Explorer中的逻辑分组文件

I have attcahed screenshots of both AVR Studio and Eclipse project explorer. 我已经获得了AVR Studio和Eclipse项目资源管理器的屏幕截图。 That should give you an idea of what kind of UI features I am requesting. 这应该使您对我要求的UI功能类型有所了解。 I can difinetely provide more information if you want. 如果您愿意,我可以提供更多信息。

我认为您正在寻找的东西可以通过工作集来完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM