Bug 37724 - [plan item] Provide Swing interoperability
Summary: [plan item] Provide Swing interoperability
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P4 enhancement with 13 votes (vote)
Target Milestone: 3.0   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on: 4410 4417 9847 10785 14711 22322 38312 38974 39401
Blocks:
  Show dependency tree
 
Reported: 2003-05-15 11:58 EDT by Jim des Rivieres CLA
Modified: 2006-02-07 22:37 EST (History)
21 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2003-05-15 11:58:23 EDT
Provide Swing interoperability. Eclipse plug-in developers often have existing 
Swing-based UIs that they would like to integrate with Eclipse. Eclipse should 
provide a wrapper that allows Swing widgets to be embedded within a SWT UI. 
[SWT]
Comment 1 Jim des Rivieres CLA 2003-05-15 11:58:43 EDT
See bug 4417
Comment 2 Bob Foster CLA 2003-05-27 16:02:12 EDT
...on all platforms.
Comment 3 Liyu Liu CLA 2003-05-27 16:26:32 EDT
Prefer to have AWT on top of SWT released to Eclipse, then swing (which on top 
of AWT) is possible without recoding. This way, SUN's SWING implementation can 
be used, all user has to do is setting bootstrap path for the alternative 
java.awt stuff.
Comment 4 Steve Northover CLA 2003-06-16 14:32:48 EDT
Gathering all bug reports that are related to Swing interoperability into this 
bug report.  When this bug report is closed, each of the related reports needs 
to be investigated.

NOTE: 4417 contains sample code and the detailed discussion.
Comment 5 Veronika Irvine CLA 2003-08-14 12:18:48 EDT
Update on embedding AWT/Swing widgets in SWT Composite:

We have implemented support in SWT for the XEmbed protocol.  This will allow 
any X application that implements XEmbed to be embedded within SWT.  When the 
Java Class Library vendors support the XEmbed protocol, then you will be able 
to embed AWT/Swing inside SWT on Motif and GTK.

On Windows we are migrating our SWT_AWT implementation to use the AWT Native 
Interface (supported in JDK 1.2 and later) rather than DrawingSurface and 
WDrawingSurfaceInfo (no longer available in JDK 1.4). On GTK and Motif we will 
implement SWT_AWT using the AWT Native Interface.  SWT_AWT is the "glue" class 
that allows an AWT Panel to be created within an SWT Composite.

Nothing has yet been done for interoperability with Swing on Carbon or Photon.
Comment 6 Leonard Norrgard CLA 2003-08-14 13:54:09 EDT
Interesting and probably useful. But have you looked at the solution provided in
bug 39401? Seems like a more convenient solution.
Comment 7 Veronika Irvine CLA 2003-09-02 17:07:36 EDT
Bug 39401  does not address the problem of having Swing interoperability on 
all platforms.  Bug 39401 is about having the AWT thread and the native UI 
thread interact without deadlocks.  A solution is provided in that bug report.
Comment 8 Juergen Weber CLA 2003-12-03 11:03:24 EST
The acceptance of Eclipse as a rich client platform would be benefited by Swing
interoperability.
Many organisations have developed specialised controls for their business needs,
e.g. controls to enter an account or creditcard number, part numbers or dates.
These controls often have a complicated validation logic (the control rejects
Feb, 29, 2003 but accepts Feb, 29, 2004, the control only accepts valid
creditcard numbers). Sometimes there are controls, that map directly to a
business object.

Being able to continue using these controls within SWT would help the acceptance
of Eclipse as a rich client platform.
Comment 9 davidf CLA 2004-04-16 18:34:31 EDT
Although I like the Eclipse GEF, it is in large part a port of Swing. When SWT
permits developers who have created complex applications that use JGraph, custom
components, and complex JTable and JTree implementations to add these elements
to something as simple as a single-window SWT application, you'll win a lot of
converts, and you'll provide a comfortable migration path. I would be happy if I
could use a JPanel as the standard wrapper to insert a set of Swing components
in an SWT layout.
Comment 10 Veronika Irvine CLA 2004-08-13 10:45:59 EDT
This is no longer a plan item but ongoing maintenance.  Please enter 
individual bug reports for any outstanding issues.