How can I show a view in defined position in plugin.xml programmably? [message #765567] |
Wed, 14 December 2011 10:07 |
benzookapi Messages: 1 Registered: December 2011 |
Junior Member |
|
|
I want to show multiple views programmably (first closed, after process completed, open), and wrote the code below.
page.showView(id, id2, IWorkbenchPage.VIEW_ACTIVATE);
(page is a instance of IWorkbenchPage)
I want these views shown on the top right (next to Outline view) area.
My view definition in plugin.xml is like below.
<view
name="..."
icon="..."
category="..."
class="..."
allowMultiple="true"
id="myid1">
</view>
...
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<view
ratio="0.5"
relative="org.eclipse.ui.views.ContentOutline"
relationship="stack"
visible="false"
id="myid1">
</view>
....
When I set visible "true" or open views manually in GUI,
the views appears next to Outline as I expected,
But the "showView()" function above always shows the views at the bottom (next to Console, Problems, .etc.).
How can I show the views on the right side as I expect?
|
|
|
Powered by
FUDForum. Page generated in 0.07587 seconds