內容翻譯自:Addison.Wesley.Eclipse.Rich.Client.Platform.Designing.Coding.and.Packaging.Java.Applications.Oct.2005
作者:Jeff McAffer, Jean-Michel Lemieux
1.工作臺首先建立一個editor site,然后調用EditorPart.init(IEditorSite, IEditorInput).方法
工作臺站點允許這個editor訪問工作臺的服務序列,所以editor必須有一個public的構造方法,通過這個方法,工作臺實例化這個editor;
2.當這個editor可見時,EditorPart.createControl(Composite)被調用來創建editor的內容;
3.一旦這個editor被創建,EditorPart.setFocus()方法被調用;
4.editor被關閉時,EditorPart.doSave(IProgressMonitor)方法被調用來保存editor中的內容;
5.最終,EditorPart.dispose() 方法被調用;