gpt4 book ai didi

eclipse-rcp - Eclipse RCP 上的侧边栏

转载 作者:行者123 更新时间:2023-12-04 06:41:55 28 4
gpt4 key购买 nike

我刚刚开始玩 Eclipse RCP。

我想完成的一些事情:

  • 如何最大化应用程序的初始大小?
  • 我想在我的左边创建一个侧边栏类型 View ,并想固定该 View 的大小并删除任何标题栏,从该侧边栏最小化/最大化/关闭。

  • 有人可以帮我吗?
    谢谢你。

    最佳答案

    首先,像 Vogella 这样的教程是必读的 ;)

  • RCP Tutorial
  • JFace Tutorial

  • 对于 1/,这与 IWorkbenchWindowConfigurer 有关, 喜欢:
    configurer.getWindow().getShell().setMaximized( true );
    postWindowOpen( IWorkbenchWindowConfigurer configurer )您的 WorkbenchAdvisor .
    thread has other alternatives .
    对于 2/,您可以声明式或通过程序执行,例如 this thread显示:

    You can do it in plugin.xml, by providing extension to point org.eclipse.ui.perspectiveExtensions by specifying showTitle="false" on the view element.

    or You can do it programmatically in Your PerspectiveFactory implementation:

    public void createInitialLayout(IPageLayout layout) {
    ...
    layout.addStandaloneView(View.ID, false,
    IPageLayout.LEFT, 1.0f, editorArea);
    ...
    }

    关于eclipse-rcp - Eclipse RCP 上的侧边栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4142031/

    28 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com