Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui
Interface IWorkbenchListener


public interface IWorkbenchListener

Interface for listening to workbench lifecycle events.

This interface may be implemented by clients.

Since:
3.2
See Also:
IWorkbench.addWorkbenchListener(org.eclipse.ui.IWorkbenchListener), IWorkbench.removeWorkbenchListener(org.eclipse.ui.IWorkbenchListener)

Method Summary
 void postShutdown ( IWorkbench workbench)
          Performs arbitrary finalization after the workbench stops running.
 boolean preShutdown ( IWorkbench workbench, boolean forced)
          Notifies that the workbench is about to shut down.
 

Method Detail

preShutdown

boolean preShutdown(
IWorkbench workbench,
                    boolean forced)
Notifies that the workbench is about to shut down.

This method is called immediately prior to workbench shutdown before any windows have been closed.

The listener may veto a regular shutdown by returning false, although this will be ignored if the workbench is being forced to shut down.

Since other workbench listeners may veto the shutdown, the listener should not dispose resources or do any other work during this notification that would leave the workbench in an inconsistent state.

Parameters:
workbench - the workbench
forced - true if the workbench is being forced to shutdown, false for a regular close
Returns:
true to allow the workbench to proceed with shutdown, false to veto a non-forced shutdown

postShutdown

void postShutdown(
IWorkbench workbench)
Performs arbitrary finalization after the workbench stops running.

This method is called during workbench shutdown after all windows have been closed.

Parameters:
workbench - the workbench

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire