Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Embed Eclipse editor into Java Swing application?
Embed Eclipse editor into Java Swing application? [message #332036] Wed, 01 October 2008 16:48 Go to next message
Jörg Kiegeland is currently offline Jörg KiegelandFriend
Messages: 32
Registered: July 2009
Member
Is it possible to embed a text editor into a Java Swing application?
More specific, I want to embed the XML editor of WTP into a Java Swing
application. The integration with the Preferences and with the Problems
View is not required, I only need the XML editor with code completion
functionality as "standalone" component to use it in a Swing-based
application.
Re: Embed Eclipse editor into Java Swing application? [message #332050 is a reply to message #332036] Wed, 01 October 2008 18:59 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jörg Kiegeland wrote:
> Is it possible to embed a text editor into a Java Swing application?
> More specific, I want to embed the XML editor of WTP into a Java Swing
> application. The integration with the Preferences and with the Problems
> View is not required, I only need the XML editor with code completion
> functionality as "standalone" component to use it in a Swing-based
> application.

Others can add their 2 cents, but the short answer is no. Most eclipse
editors depend on a lot of services running, including the workbench.

You can embed Swing controls in SWT composites, and could probably
display SWT Composites on top of Swing frames with some work, but there
is a lot of infrastructure (in workbench window, workbench, and platform
text) that go into having an editor work.

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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Embed Eclipse editor into Java Swing application? [message #332097 is a reply to message #332050] Thu, 02 October 2008 19:21 Go to previous message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
Paul Webster wrote:
> Others can add their 2 cents, but the short answer is no. Most eclipse
> editors depend on a lot of services running, including the workbench.

Yeah, I don't see a way to embed it. I think it may be possible to set
up a minimal RCP application with the editor included. Since
https://bugs.eclipse.org/bugs/show_bug.cgi?id=176492 the XML editor is
now a separate feature.

But it would take a lot of work to hide the rest of the platform you
don't care about. And you would still have to launch a new window from
your Swing app.

Anyone tried something like this before?
Previous Topic:Databinding throws NPE
Next Topic:Broken CVS after sourceforge move
Goto Forum:
  


Current Time: Sat Jul 13 22:37:47 GMT 2024

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

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

Back to the top