Bug 31859 - [OLE] Support for creating an ActiveX Control using SWT
Summary: [OLE] Support for creating an ActiveX Control using SWT
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows All
: P3 enhancement with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact: Felipe Heidrich CLA
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2003-02-14 04:30 EST by Philipp Seith CLA
Modified: 2017-08-03 12:26 EDT (History)
2 users (show)

See Also:


Attachments
Source code as described in the Bug-Description (257.90 KB, application/zip)
2003-02-14 04:55 EST, Philipp Seith CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Seith CLA 2003-02-14 04:30:56 EST
 
Comment 1 Philipp Seith CLA 2003-02-14 04:55:36 EST
Created attachment 3488 [details]
Source code as described in the Bug-Description
Comment 2 Philipp Seith CLA 2003-02-14 04:56:09 EST
The attached zip contains the sources for an ActiveX control which can contain
SWT widgets.
The source could be devided into 4 parts:
1. SWT extension
2. Generic MFC ActiveX control
3. Jace patch
4. JavaCOMReg

The SWT extension contains 4 classes which extend Display and Shell that they
could be used inside an ActiveX control

The generic ActiveX control is a blank container, which passes the windows
messages to ActiveXDisplay and ActiveXShell in the correct way. 

The ActiveX control uses Jace (http://sourceforge.net/projects/jace) to to the
JNI stuff. Because of the special requirements (see below) with Java and
ActiveX, I did a small patch for Jace 1.1 beta2 (I submitted it some month ago
to the Jace project, Toby Reyelts told me he will merge it into the codebase)

JavaComReg: Because more than one SWT ActiveX control could be hosted by one
process, but only on VM can be in one process, all Java ActiveXen need to share
the same VM. Therefore it is necessary that they test if a VM is allready
present (done in the Jace patch) and, because the classpath needs to be set when
the VM is loaded for the first time (when you look at the SUN classloader code,
you see that it needs not, but they sealed this opportunity by making the
classloader final and protected), all Java ActiveXen need to register the jars
they need, and the classpath needs to be build of this registry entries on the
first startup
Comment 3 Veronika Irvine CLA 2003-02-14 14:06:41 EST
I will look at this after 2.1.
Comment 4 Jens Vagts CLA 2006-06-23 02:13:37 EDT
Are there any plans to implement this feature? This could help to migrate and gain more acceptance in c++/mfc centric organisations, since you could use new swt views in old c++ (or .NET) applications. You can than argue "swt/eclipse is not a one way street", weaken some fears against this new technology! :)
Comment 5 Veronika Irvine CLA 2006-06-23 12:27:07 EDT
Currently, there is no plan to implement this support by the SWT team.  You can create ActiveX controls in C++ using other tools and embed them in SWT using OleControlSite.

This would be a good candidate for an external contribution.  It is a self contained unit of functionality.
Comment 6 Felipe Heidrich CLA 2009-08-12 12:09:31 EDT
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.
Comment 7 Leo Ufimtsev CLA 2017-08-03 12:26:51 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate