Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How can I show a view in defined position in plugin.xml programmably?(IWorkbenchPage.showView() problem)
How can I show a view in defined position in plugin.xml programmably? [message #765567] Wed, 14 December 2011 10:07
benzookapi is currently offline benzookapiFriend
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?







Previous Topic:Java Formatter settings for casts
Next Topic:Problem with string and System.getProperty
Goto Forum:
  


Current Time: Sat Sep 21 05:08:54 GMT 2024

Powered by FUDForum. Page generated in 0.07587 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top