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 doPrint() {
		if(clientSite == null)
			return;
		BusyIndicator.showWhile(clientSite.getDisplay(), new Runnable() {
			public void run() {
				clientSite.exec(OLE.OLECMDID_PRINT, OLE.OLECMDEXECOPT_PROMPTUSER, null, null);
				
			}
		});
	}
	/**
	 *	Save the viewer's contents to the source file system file
	 */
	public void doSave(final IProgressMonitor monitor) {
		if(clientSite == null)
			return;
		BusyIndicator.showWhile(clientSite.getDisplay(), new Runnable() {
			public void run() {
				
				
				if (!sourceChanged) {
					int result = clientSite.queryStatus(OLE.OLECMDID_SAVE);
					if ((result & OLE.OLECMDF_ENABLED) != 0) {
						result =
							clientSite.exec(OLE.OLECMDID_SAVE, OLE.OLECMDEXECOPT_PROMPTUSER, null, null);
						if (result == OLE.S_OK) {
							try {
								resource.refreshLocal(resource.DEPTH_ZERO, monitor);
							} catch (CoreException ex) {