Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to specify an exact location for showView()?
How to specify an exact location for showView()? [message #444521] Thu, 16 February 2006 11:28 Go to next message
Eclipse UserFriend
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 #444524 is a reply to message #444521] Thu, 16 February 2006 12:37 Go to previous messageGo to next message
Eclipse UserFriend
You have to specify a placeholder for the view, using the multi-instance
view identifier ... it's described in the IPageLayout javadocs.

Later,
PW
Re: How to specify an exact location for showView()? [message #444525 is a reply to message #444524] Thu, 16 February 2006 13:31 Go to previous message
Eclipse UserFriend
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
Previous Topic:Problem in invoking help from
Next Topic:JobErrorDialog with disabled Detail-Button
Goto Forum:
  


Current Time: Mon Jul 14 00:00:03 EDT 2025

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

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

Back to the top