Problem using IPartListener2 [message #444552] |
Fri, 17 February 2006 15:05 |
Eclipse User |
|
|
|
Originally posted by: alexixlebaulois.yahoo.fr
Hi everyone,
I've got a view implenting IPartListener2. In this view, I'm using partHidden() to close some other views like this<i>
public void partHidden(IWorkbenchPartReference partRef) {
IViewPart view = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().findView(viewID);
if(view != null) {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().hideView(view);
}
}</i>
Everything works, but when I close my application, I've got an error. I think the problem comes the methods I use to close my views because maybe, when my application is closed, there is not Workbench anymore or something like that. So what can I do to prevent my application from executing the content of my hidePart() method when it closes ?
|
|
|
Powered by
FUDForum. Page generated in 0.03341 seconds