任何方法从Eclipse中的层次结构视图中隐藏测试类? [英] Any way to hide test classes from the Hierarchy View in Eclipse?

查看:196
本文介绍了任何方法从Eclipse中的层次结构视图中隐藏测试类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢Eclipse的层次结构视图,它可以快速显示我的Java类和接口的所有子类型和超类型。然而,我正在寻找的结果令人困惑,事实上他们也显示了我的单元测试的所有类型。虽然我觉得有帮助的时候,我大都觉得很讨厌。任何方法来过滤?

解决方案

在层次结构视图中,选择菜单,然后选择选择工作集。创建一个新的工作集,其中包括除Test类之外的所有内容。使用新的工作集。


I love Eclipse's hierarchy view which quickly shows all the subtypes and supertypes of my Java classes and interfaces. However, the results I am looking for are made confusing by the fact they also show all the types from my unit tests. While I find this helpful at time, I mostly find it annoying. Any way to filter this?

解决方案

In the Hierarchy View, select the menu, and then choose "Select a Working Set". Create a new Working Set that includes everything except the Test classes. Use the new Working Set.

这篇关于任何方法从Eclipse中的层次结构视图中隐藏测试类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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