1. <i id='ynD30'><tr id='ynD30'><dt id='ynD30'><q id='ynD30'><span id='ynD30'><b id='ynD30'><form id='ynD30'><ins id='ynD30'></ins><ul id='ynD30'></ul><sub id='ynD30'></sub></form><legend id='ynD30'></legend><bdo id='ynD30'><pre id='ynD30'><center id='ynD30'></center></pre></bdo></b><th id='ynD30'></th></span></q></dt></tr></i><div id='ynD30'><tfoot id='ynD30'></tfoot><dl id='ynD30'><fieldset id='ynD30'></fieldset></dl></div>
    2. <legend id='ynD30'><style id='ynD30'><dir id='ynD30'><q id='ynD30'></q></dir></style></legend>

      <tfoot id='ynD30'></tfoot>
        <bdo id='ynD30'></bdo><ul id='ynD30'></ul>
    3. <small id='ynD30'></small><noframes id='ynD30'>

    4. 在 Eclipse RCP 应用程序 (Eclipse e4) 中隐藏 Coolbar/Toolbar 项/Prefer

      Hide Coolbar/Toolbar items/Preference pages in Eclipse RCP application (Eclipse e4)(在 Eclipse RCP 应用程序 (Eclipse e4) 中隐藏 Coolbar/Toolbar 项/Preference 页面)

      <small id='i8yQZ'></small><noframes id='i8yQZ'>

          <i id='i8yQZ'><tr id='i8yQZ'><dt id='i8yQZ'><q id='i8yQZ'><span id='i8yQZ'><b id='i8yQZ'><form id='i8yQZ'><ins id='i8yQZ'></ins><ul id='i8yQZ'></ul><sub id='i8yQZ'></sub></form><legend id='i8yQZ'></legend><bdo id='i8yQZ'><pre id='i8yQZ'><center id='i8yQZ'></center></pre></bdo></b><th id='i8yQZ'></th></span></q></dt></tr></i><div id='i8yQZ'><tfoot id='i8yQZ'></tfoot><dl id='i8yQZ'><fieldset id='i8yQZ'></fieldset></dl></div>
          • <bdo id='i8yQZ'></bdo><ul id='i8yQZ'></ul>
            <tfoot id='i8yQZ'></tfoot>
                  <tbody id='i8yQZ'></tbody>
                <legend id='i8yQZ'><style id='i8yQZ'><dir id='i8yQZ'><q id='i8yQZ'></q></dir></style></legend>
              1. 本文介绍了在 Eclipse RCP 应用程序 (Eclipse e4) 中隐藏 Coolbar/Toolbar 项/Preference 页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                在我们的 Eclipse RCP 应用程序(使用 Eclipse 3.7)中,我重写了 WorkbenchWindowAdvisor.postWindowCreate() 方法,以隐藏不需要的 Coolbar/Toolbar 项目,例如 File运行等菜单和运行最后一个工具搜索等工具栏按钮,它工作正常.现在我已将代码移至 Eclipse e4 4.1.2,当我运行我的 RCP 应用程序时,它会启动,但会显示这些不需要的 Coolbar/Toolbar 项目.

                In our Eclipse RCP application (using Eclipse 3.7) I had overridden WorkbenchWindowAdvisor.postWindowCreate() method, to hide the unwanted Coolbar/Toolbar items like File, Run etc. menus and Run Last Tool, Search etc. toolbar buttons and it was working fine. Now I have moved my code to Eclipse e4 4.1.2 and when I run my RCP application now it gets launched but it is showing these unwanted Coolbar/Toolbar items.

                在深入研究该问题时,我发现 WorkbenchWindowAdvisor.postWindowCreate() 方法未在 e4 中使用,并且根本没有被调用.那么在 Eclipse e4 中执行此操作的替代方法是什么?

                On some digging into the issue I found out that WorkbenchWindowAdvisor.postWindowCreate() method is not used in e4 and it does not get called at all. So what is the alternative way of doing this in Eclipse e4?

                我还想提一下,在我的 RCP 应用程序中,我有 Xtext 插件.

                I also want to mention that in my RCP application I am having Xtext plugin.

                推荐答案

                您可以:a) 使用没有这些项目的自定义 Legacy.e4xmi 文件b) 使用模型处理器以编程方式从模型中删除这些项目

                You can: a) use a custom Legacy.e4xmi file which has none of those items b) use a model processor to remove those items programmatically from the model

                这篇关于在 Eclipse RCP 应用程序 (Eclipse e4) 中隐藏 Coolbar/Toolbar 项/Preference 页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Bytecode features not available in the Java language(Java 语言中不可用的字节码功能)
                ClassCastException because of classloaders?(ClassCastException 因为类加载器?)
                How can I add a Javaagent to a JVM without stopping the JVM?(如何在不停止 JVM 的情况下将 Javaagent 添加到 JVM?)
                Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                Encourage the JVM to GC rather than grow the heap?(鼓励 JVM 进行 GC 而不是增加堆?)
                Why a sawtooth shaped graph?(为什么是锯齿形图形?)

                  <i id='B3Mku'><tr id='B3Mku'><dt id='B3Mku'><q id='B3Mku'><span id='B3Mku'><b id='B3Mku'><form id='B3Mku'><ins id='B3Mku'></ins><ul id='B3Mku'></ul><sub id='B3Mku'></sub></form><legend id='B3Mku'></legend><bdo id='B3Mku'><pre id='B3Mku'><center id='B3Mku'></center></pre></bdo></b><th id='B3Mku'></th></span></q></dt></tr></i><div id='B3Mku'><tfoot id='B3Mku'></tfoot><dl id='B3Mku'><fieldset id='B3Mku'></fieldset></dl></div>

                    <tfoot id='B3Mku'></tfoot>

                      <tbody id='B3Mku'></tbody>

                      <bdo id='B3Mku'></bdo><ul id='B3Mku'></ul>

                      <small id='B3Mku'></small><noframes id='B3Mku'>

                        <legend id='B3Mku'><style id='B3Mku'><dir id='B3Mku'><q id='B3Mku'></q></dir></style></legend>