Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Excel integration / dirty state
Excel integration / dirty state [message #547288] Fri, 16 July 2010 08:14 Go to next message
Martin Lange is currently offline Martin LangeFriend
Messages: 16
Registered: May 2010
Location: Munich, Germany
Junior Member

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 15:41 Go to previous message
Martin Klinke is currently offline Martin KlinkeFriend
Messages: 80
Registered: July 2009
Member
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 Apr 20 12:12:23 GMT 2024

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

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

Back to the top