Problem opening editor in startup perspective [message #467587] |
Tue, 08 May 2007 09:10  |
Eclipse User |
|
|
|
Originally posted by: bcmaxwel.yahoo.com
Sorry if this is a no-brainer, but it's driving me eight kinds of crazy.
My startup perspective needs to open one editor. However, the call to
get the active page:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage()
returns null, presumably because things are started up yet(?)
I can launch the editor from my ApplicationWorkbenchWindowAdvisor, but
it doesn't hide properly when I switch perspectives later.
This is probably something easy. Any ideas?
Thanks,
Brad
|
|
|
|
Re: Problem opening editor in startup perspective [message #467735 is a reply to message #467587] |
Thu, 10 May 2007 09:31  |
Eclipse User |
|
|
|
Brad Maxwell wrote:
> Sorry if this is a no-brainer, but it's driving me eight kinds of crazy.
>
> My startup perspective needs to open one editor. However, the call to
> get the active page:
While you might want to consider what James mentioned, something you
could do is create a UIJob() to open your editor on startup and schedule it.
The current workflow will finish and then it will try and open your
editor ... but you'll have to be careful to only do it when the active
page is null or you would be switching perspectives and then have it
show up some time later.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.03316 seconds