Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Own Viewer within BuildProcess
Own Viewer within BuildProcess [message #120239] Tue, 02 September 2003 07:59
Eclipse UserFriend
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
Previous Topic:eclipse on linux - no text on dialogs
Next Topic:Manifest specification problems
Goto Forum:
  


Current Time: Thu Dec 26 17:24:02 GMT 2024

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

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

Back to the top