在Eclipse Neon中启用JSDT Outline视图 [英] Enabling the JSDT Outline view in Eclipse Neon

查看:167
本文介绍了在Eclipse Neon中启用JSDT Outline视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显示JavaScript源文件内容的大纲视图的问题不是新的,



霓虹灯(NOK)中的结果:





是否有一些新的配置设置需要启用? Eclipse中的 JSDT Wiki是非常有趣的,Eclipse中的帮助内容根本没有帮助不知道在哪里找到明确的指示。



可视空格和Outline视图的内容是我不能没有生活的东西,我希望这是一个比一个配置的东西



注意:如果您碰巧将火星用于更高版本,并且已启用Oomph同步功能,则此概要功能火星可能会消失。这发生在我身上,解决方案是禁用随后的版本的Oomph同步(在我的情况下,霓虹灯);然而,我继续将Mars首选项存储到工作区(而不是将它们保存到用户中)。

解决方案

JSDT Bugzilla 。请查看具体的错误页面,在哪里可以看到开发人员如何协作寻找解决方案。



https:// bugs.eclipse.org/bugs/show_bug.cgi?id=499788


The question of the Outline view showing the contents of a JavaScript source file is not new and it had even found an answer.

However, that answer no longer works in Neon (4.6.0): I have opened the exact same file of one project imported in two separate workspaces, one for each version of Eclipse, and Mars shows the complete outline (3 namespaces, about 80 members) whereas Neon shows two namespaces and 0 members. In the Java perspective.

For instance, the following code, taken from the question I've linked to above gives the following results in Mars SR2 and Neon:

var myNamespace = function()
{
    /**
     * @memberOf myNamespace
     */
    function myFunc1()
    {
    }
    /**
     * @memberOf myNamespace
     */
    function myFunc2()
    {
    }

    return {
        name : "myNamespace",
        myFunc1 : myFunc1,
        myFunc2 : myFunc2
    }
}();

Result in Mars SR2 (OK):

Result in Neon (NOK):

Are there some new configuration settings that need to be enabled? The JSDT Wiki at eclipse.org is stark, the Help contents in Eclipse is not helpful at all and I have no idea where to find definitive instructions.

Visible spaces and the contents of the Outline view are things I cannot live without so I hope this is more a configuration thing than a bug.

[EDIT] NOTE: if you happen to use Mars with a later release and you have Oomph synchronization enabled, this outlining feature in Mars may disappear. It happened to me and the solution is to disable Oomph synchronization with later releases (Neon, in my case); I however continue to store the Mars preferences into the workspace (instead of having them saved into the user).

解决方案

This bug was reported and fixed in JSDT Bugzilla. Please, check the specific bug page, where you can see how the developers collaborated to find a solution.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=499788

这篇关于在Eclipse Neon中启用JSDT Outline视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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