Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem using IPartListener2
Problem using IPartListener2 [message #444552] Fri, 17 February 2006 15:05
Eclipse UserFriend
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 ?
Previous Topic:What is the name/id of the "recently opened files" preference?
Next Topic:resources in rcp
Goto Forum:
  


Current Time: Wed Dec 04 19:44:08 GMT 2024

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

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

Back to the top