java - Eclipse RCP when opening OLE (word) the main bar menu disappears. how to avoid it? - Stack Overflow

admin2025-04-16  4

In Eclipse-RCP I open a Microsoft Word document using the following code:

oleClientSite = new OleClientSite(oleFrame, SWT.NONE, "Word.Document", file);
oleClientSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
oleAutomation = new OleAutomation(oleClientSite);

When the document is focused or edited, the menu (defined in Application.e4xmi) disappears (on the top/left) and I do not know why?
If I click on the treeView it appears again.
as suggested, I tried the snippet262 (stand-alone mode) : yes it's work fine for me
I use Eclipse 2023-03 and SWT 3.125.0.v20240227

转载请注明原文地址:http://anycun.com/QandA/1744809181a87917.html