Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Re: Embed native app
Re: Embed native app [message #521372] Wed, 17 March 2010 13:02 Go to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

jason.bo.liu@gmail.com wrote:
> Hi everyone,
>
> I have a motif based C++ application that I am looking to port to
> Eclipse RCP. Right now, I want a quick and dirty port where all i care
> about is embedding the application into eclipse enviroment. I do have
> plans to re-write the application in SWT/java later on.
> Is there any way in SWT to embed motif native apps?

There's not supported way, but it might be do-able on a per-platform
basis for a specific version of SWT. I've sent this to the SWT newsgroup.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Embed native app [message #521424 is a reply to message #521372] Wed, 17 March 2010 14:36 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
There's a way to do this in theory, but I don't know if it has actually been
tried for motif-based apps. It's worth a try though:

- create an SWT Composite with style SWT.EMBEDDED
- call XReparentWindow(...) with the Composite's embeddedHandle field as the
"parent" value

HTH,
Grant


"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:hnqjs3$jm8$2@build.eclipse.org...
> jason.bo.liu@gmail.com wrote:
> > Hi everyone,
> >
> > I have a motif based C++ application that I am looking to port to
> > Eclipse RCP. Right now, I want a quick and dirty port where all i care
> > about is embedding the application into eclipse enviroment. I do have
> > plans to re-write the application in SWT/java later on.
> > Is there any way in SWT to embed motif native apps?
>
> There's not supported way, but it might be do-able on a per-platform
> basis for a specific version of SWT. I've sent this to the SWT newsgroup.
>
> PW
>
> --
> Paul Webster
> http://wiki.eclipse.org/Platform_Command_Framework
> http://wiki.eclipse.org/Command_Core_Expressions
> http://wiki.eclipse.org/Menu_Contributions
> http://wiki.eclipse.org/Menus_Extension_Mapping
>
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Previous Topic:Custom tooltip on table cell
Next Topic:Printer duplex support
Goto Forum:
  


Current Time: Sat Aug 24 12:01:24 GMT 2019

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

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

Back to the top