Own Viewer within BuildProcess [message #120239] |
Tue, 02 September 2003 07:59 |
Eclipse User |
|
|
|
Originally posted by: m.bauer.signsoft.com
Hi,
I posted a nearly similar problem some time ago. Due to the fact, that i
couldn't solve the problem I'm asking again now for a solution.
I want to invoke my own View (subclassed from ViewPart) during the
buildprocess.
Therefore I call:
vp =
(MessageViewPart)PlatformUI.getWorkbench().getActiveWorkbenc hWindow().getAct
ivePage().showView("id.MessageViewPart");
But i get only a NullPointerException cause there seems to be no
ActiveWorkbenchWindow at this time. If I call my view seperatly, during I
selected a sourcefile in the Editor, there is no problem. The same Problem
happens, if I call
PlatformUI.getWorkbench().getActiveWorkbenchWindow()
during the BuildProcess.
So, how can I invoke my view during the build process? I tried:
view = new MyView();
view.createControl(new Shell);
but this doesn't works too.
Is there another possibility to get the ActiveWorbenchWindow or just get the
currently opened (that my not be active)?
Thanks in advance
Michael Bauer
|
|
|
Powered by
FUDForum. Page generated in 0.02720 seconds