Bug 17480 Menus for Ole documents incorrect
Eclipse F1 1) Open an ole editor on a bitmap file 2) Open an ole eidtor on a word document 3) flip between the two tabs by clicking on the tabs. Notice that the menu is not the correct menu for the ole editor that is active. The problem is that one editor is being activated and setting the menu and then the other editor is being deactivated which wipes out the menu. The fix is: OleEditor.setFocus should do nothing: public void setFocus() { } and OleEditor.activateClientPart should activate the editor: private void activateClient(IWorkbenchPart part) { if (part == this) { oleActivate(); } } Note that the method clientFrame.setFocus does not need to be called - activation will take care of the focus.
bundles/org.eclipse.ui.win32/src/org/eclipse/ui/internal/editorsupport/win32/OleEditor.java
*/
	public void gotoMarker(IMarker marker) {
	}
	/* (non-Javadoc)
	 * Initializes the editor when created from scratch.
	 * 
	 * This method is called soon after part construction and marks 
	 * the start of the extension lifecycle.  At the end of the
	 * extension lifecycle <code>shutdown</code> will be invoked
	 * to terminate the lifecycle.
	 *
	 * @param container an interface for communication with the part container
	 * @param input The initial input element for the editor.  In most cases
	 *    it is an <code>IFile</code> but other types are acceptable.
	 * @see IWorkbenchPart#shutdown
	 */
	public void init(IEditorSite site, IEditorInput input)
		throws PartInitException {
		
		if (!(input instanceof IFileEditorInput))
			throw new PartInitException(
				WorkbenchMessages.format("OleEditor.invalidInput", new Object[] { input })); 
		
		
		setSite(site);
		setInput(input);
		
		setTitle(input.getName());
		setTitleToolTip(input.getToolTipText());
		ImageDescriptor desc = input.getImageDescriptor();