Positioning of multi instance jface view in editor area [message #1861721] |
Mon, 30 October 2023 18:29 |
Harish M Messages: 3 Registered: August 2023 |
Junior Member |
|
|
For my use case, I have configured JFace view in plugin.xml to allow multiple instances. I am trying to open view like this in my handler class. I can able to open multiple instances but not in expected position.
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("pId", "sId", IWorkbenchPage.VIEW_ACTIVATE);
and configured in perspective extension like this.
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="perspectiveId">
<view
closeable="true"
id="viewId"
minimized="false"
relationship="stack"
relative="org.eclipse.ui.editorss"
visible="false">
</view>
This view always opens next to console view which is located at bottom instead of editor area. I want this view to be stacked to editor area which should open multiple instances of same view next to each other. Please let me know if I am missing something here.
Thanks in advance.
|
|
|
Powered by
FUDForum. Page generated in 0.02808 seconds