Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Excel integration / dirty state
Excel integration / dirty state [message #547288] Fri, 16 July 2010 04:14 Go to next message
Eclipse UserFriend
Hi,

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", file);


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
Re: Excel integration / dirty state [message #548388 is a reply to message #547288] Wed, 21 July 2010 11:41 Go to previous message
Eclipse UserFriend
Martin,

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?

Cheers,
Martin

Am 16.07.2010 10:14, schrieb Martin:
> Hi,
> 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",
> file);
>
>
> 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
>
Previous Topic:Using declared osgi services inside an RCP application
Next Topic:Default Font Size
Goto Forum:
  


Current Time: Sat Jul 05 08:56:10 EDT 2025

Powered by FUDForum. Page generated in 0.22796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top