WorkbenchAdvisor中的方法执行顺序

王朝java/jsp·作者佚名  2006-01-09
宽屏版  字体: |||超大  

initialize - called first; before any windows; use to register things

preStartup - called second; after initialize but before first window is opened; use to temporarily disable things during startup or restore

postStartup - called third; after first window is opened; use to reenable things temporarily disabled in previous step

postRestore - called after the workbench and its windows has been recreated from a previously saved state; use to adjust the restored workbench

preWindowOpen - called as each window is being opened; use to configure aspects of the window other than actions bars

fillActionBars - called after preWindowOpen to configure a window's action bars

postWindowRestore - called after a window has been recreated from a previously saved state; use to adjust the restored window

postWindowCreate - called after a window has been created, either from an initial state or from a restored state; used to adjust the window

openIntro - called immediately before a window is opened in order to create the introduction component, if any.

postWindowOpen - called after a window has been opened; use to hook window listeners, etc.

preWindowShellClose - called when a window's shell is closed by the user; use to pre-screen window closings

eventLoopException - called to handle the case where the event loop has crashed; use to inform the user that things are not well

eventLoopIdle - called when there are currently no more events to be processed; use to perform other work or to yield until new events enter the queue

preShutdown - called just after event loop has terminated but before any windows have been closed; use to deregister things registered during initialize

postShutdown - called last; after event loop has terminated and all windows have been closed; use to deregister things registered during initialize

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有