让所有方法的概述视角中的一类在Eclipse [英] getting an overview perspective of all methods in a class in Eclipse

查看:140
本文介绍了让所有方法的概述视角中的一类在Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了相当长的一段X code编程,发现的一类真正有用的方法的概述观点。它看起来是这样的:

I have done quite some xCode programming and found the overview perspective of the methods in a class really helpful. It looks like this:

MY_GROUP_1 <- defined with #pragma mark MY_GROUP_1
M method11
M method12
M....
MY_GROUP_2
M method21
M method22
M....

在Eclipse中我只找到了外形来看,它不具有一个标题分组。于是我开始只是定义的方法来虐待他们为这样的组名称

In Eclipse I only found the outline view, which does not have a grouping with a headline. So I started to define methods just to abuse them as group names like this

 /**
     * 
     * @category MessageSequence
     */
    public void __GROUP_1__() {

    }

至少我现在在大纲视图,看起来像这样的列表:

At least I have now a list in the outline view that looks like this:

    __GROUP_1__
    method11
    method12
    method..
   __GROUP_2__
    method21
    method22
    method..

虽然它比什么都没有,我怀疑这是得到那些阶级结构的概述,其方法的最佳途径。

While its better than nothing, I doubt that this is the best way to get an overview of ones class structure with its methods.

什么是正确的方式做到这一点?

What would be the right way to do this?

非常感谢!

PS也不知为什么D组标题方法必须是公开的。 Eclipse不显示在总览视图的私有方法。

ps also I don't know why the groupd headline methods have to be public. Eclipse does not show private methods in the overview view.

编辑:基于钉子给出的答案我更新在这里让大家可以看到它是如何工作的,并没有浪费时间试图左右...

based on the answer given by "The Nail" I update it here so that everyone can see how it works and does not have to waste time trying around...

  1. 按照安装说明 HTTP: //kosiara87.blogspot.com/2011/12/how-to-install-coffee-bytes-plugin-in.html - 通过发现链接
  2. 设置标识符在设置 - > Java的>编辑 - >折叠 - >用户定义的区域(标签右边)开始标识:地区,endidentifier:endregion
  1. Follow the install instructions http://kosiara87.blogspot.com/2011/12/how-to-install-coffee-bytes-plugin-in.html - link found by
  2. set the identifiers in settings->java->editor->folding-> user defined regions (tab on the right) to start identifier: region, endidentifier: endregion

现在,你可以这样做:

 //region Y
    public void y1() {
    }

    public void y2() {
    }

    //endregion Y

如果没有设置折叠没有为我工作.. 哦,对了,不要忘记重新启动Eclipse,如果它不立即工作!

Without the settings folding did not work for me.. Oh, yes and don't forget to restart Eclipse if it doesn't work immediately!

推荐答案

其实,这是对的任何方式组方法的Java / Eclipse的?

的咖啡字节插件提到不再可用在所指的位置。但是,似乎巴尔托什Kosarzycki昨日已发布的更新版本:

The Coffee Bytes plugin is mentioned is no longer available at the referred locations. But, it seems that Bartosz Kosarzycki has posted an updated version yesterday:

<一个href="http://kosiara87.blogspot.com/2011/12/how-to-install-coffee-bytes-plugin-in.html">http://kosiara87.blogspot.com/2011/12/how-to-install-coffee-bytes-plugin-in.html

请注意,这确实的不可以提供分组的大纲视图,只是(定制)折叠在编辑器中。

Note that this does not provide grouping for the outline view, just (customized) folding in the editor.

这篇关于让所有方法的概述视角中的一类在Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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