|Re: Excel integration / dirty state [message #548388 is a reply to message #547288]
||Wed, 21 July 2010 15:41
| Martin Klinke
Registered: July 2009
AFAIK, this doesn't even work in the "regular" IDE application. Whenever
I open an Excel sheet with the embedded editor in Eclipse, it is already
dirty. Also, the state doesn't change when saving.
So maybe there is some restriction in the OLE integration that makes
this impossible. But this is just a guess. Maybe someone with more
insight can comment on the issue?
Am 16.07.2010 10:14, schrieb Martin:
> I have integrated Excel in an editor of my RCP application with the
> following code in the createPartControl method:
> file = new File(fileName);
> parent.setLayout(new GridLayout(1, false));
> OleFrame frame = new OleFrame(parent, SWT.NONE);
> frame.setLayoutData(new GridData(GridData.FILL_BOTH));
> OleControlSite site = new OleControlSite(frame, SWT.NONE, "Excel.Sheet",
> Now I like to add an event handle to react on changed of the loaded
> Excel document and change the dirty state of my editor.
> How can I realize that?
> Thank in advance.
> -- Martin
Powered by FUDForum
. Page generated in 0.01271 seconds