How to specify an exact location for showView()? [message #444521] |
Thu, 16 February 2006 11:28  |
Eclipse User |
|
|
|
Hi,
It looks like I'm missing something very simple... Let's say, I have some
views layed out like this:
|---------------------------------------|
| | |
| | 3, 4 |
| | |
| | |
| 1, 2 |--------------------------|
| | |
| | 5, 6 |
| | |
| | |
|---------------------------------------|
View 1 is currently active (in focus). I call a "duplicate" button in this
view, that activates the following code:
IWorkbenchWindow.getActivePage().showView( viewId, secondaryId,
IWorkbenchPage.VIEW_CREATE ); Then, I think, I reasonably expect this view
appear somwhere under or over view 1 or 2, but to my surprise it shows up
under view 6 (perhaps, because view 6 was last to show up).
How could I specify in what part of the page I want this view to appear?
Thanks in advance,
Serge
|
|
|
|
Re: How to specify an exact location for showView()? [message #444525 is a reply to message #444524] |
Thu, 16 February 2006 13:31  |
Eclipse User |
|
|
|
Paul,
Thank you for the hint. An idea of placing this view same way as in
IPerspectiveFactory.createInitialLayout( IPageLayout ) also occured to me,
but I rejected it since I could not find a place where to get current
IPageLayout from.
Sincerely,
Serge
Paul Webster wrote:
> You have to specify a placeholder for the view, using the multi-instance
> view identifier ... it's described in the IPageLayout javadocs.
> Later,
> PW
|
|
|
Powered by
FUDForum. Page generated in 0.07136 seconds