Community
Participate
Working Groups
The java docs for org.eclipse.ui.init(...) say: /** * Initializes this view with the given view site. * <p> * This method is automatically called by the workbench shortly after part * construction. It marks the start of the views's lifecycle. Clients must * not call this method. * </p> * * @param site the view site * @exception PartInitException if this view was not initialized successfully */ public void init(IViewSite site) throws PartInitException; To the naked eye "shortly after part construction" sounded like immediately after createPartControl(Composite parent) in the parent interface. This is not the case. Init is called before createPartControl. I believe the docs should be clearer. Mazen.
"after part construction" means after the constructor is called. "after instantiating the part" may be clearer.
Fixed up the Javadoc to say: "This method is automatically called shortly after the part is instantiated." Fixed both init methods in IViewPart and the one in IEditorPart.