开发者

Eclipse RCP: Extension Point (restorable="false") does not work on Stacked views

开发者 https://www.devze.com 2023-04-03 12:59 出处:网络
In the Extension Points, i define a vew NOT restorable. <view id=\"...\" name=\"...\" class=\"...\" allowMultiple=\"true\"

In the Extension Points, i define a vew NOT restorable.

    <view
            id="..."
            name="..."
            class="..."
            allowMultiple="true"
            restorable="false">
    </view>

All the views that are "stacked" (minimized) are NOT closed when the workbench closes. Is this normal behavior?

I have to manually close the views...

public static void 开发者_运维技巧hideViews(IWorkbenchPage page) {
    //list of views VISIBLE on this page
    IViewReference[] views=page.getViewReferences();
    for(int i=0; i<views.length; i++) {
        //hide view
    }
}

Thanks.

EDIT: I opened an eclipse BUG. https://bugs.eclipse.org/bugs/show_bug.cgi?id=358578

0

精彩评论

暂无评论...
验证码 换一张
取 消