Ole Frame не может открывать файлы Excel в среде Linux - PullRequest
0 голосов
/ 05 апреля 2019

Я установил приложение (RCP) с рамкой OLE для редактирования на месте. OleFrame не может открывать файлы Excel в среде linux (CentOS7). Я использую Apache OpenOffice 4.1.2.

private void createExcelPart(Shell shell) 
{ 
    //OleFrame is actually a Composite for placing OLE controls 
    OleFrame oleFrame = new OleFrame(shell,SWT.NONE); 

    //OleClientSite provides a place to embed an OLE object into a container, where the OLE object represented by "Excel.Sheet" is Excel. 
    OleClientSite clientSite = new OleClientSite(oleFrame,SWT.NONE,"Excel.Sheet"); 

    setValueForA1Cell(clientSite); 

    //OleClientSite action when displaying OLE object, the action here is OLEIVERB_SHOW, display 
    clientSite.doVerb(OLE.OLEIVERB_SHOW); 
} 

Целевая среда:

Константы BootLoader: OS = linux, ARCH = x86_64, WS = gtk, NL = en_US Аргументы командной строки: -os linux -wsgtk -arch x86_64

СООБЩЕНИЕ Ошибка приложения

java.lang.Error: Unresolved compilation problems: 
The import org.eclipse.swt.ole cannot be resolved

OleFrame cannot be resolved to a type
OleClientSite cannot be resolved to a type
OLE cannot be resolved to a variable

Пожалуйста, дайте мне решение. Спасибо

...