[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] OS/2 4.5x port in development?
|
Here is the email that was sent in response to requests from the Mac
community to do an SWT port to the Mac.
All of the same points apply, so this email is almost verbatim.
Carolyn
To get you started we can set up separate mailing list if you like,
and provide a template of SWT API stubs. We are willing to offer
technical guidance, and review and commit code.
However there are certain things that are required before this can happen:
1) We need to get PMC approval to make this part of the Eclipse project.
2) A technical lead must come forward from the community who is willing
to make a commitment to see the project through to its completion.
The most important experience is **OS/2 programming** and C.
The current SWT team is already fully committed for the near future.
3) The port has to be well done and consistent with existing SWT
implementations.
We recommend you read the following:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/main.html
http://www.eclipsecorner.org/articles/Article-SWT-Design-1/SWT-Design-1.html
http://www.eclipsecorner.org/eclipse/eclipse-charter.html
To get a feel for SWT programming, check out our example plugins:
- org.eclipse.swt.examples
- org.eclipse.swt.examples.controls
- org.eclipse.swt.examples.launcher
- org.eclipse.swt.examples.paint
To look at the SWT implementation, connect to the repository using:
:pserver:anonymous@xxxxxxxxxxxxxxx:/home/eclipse
and load the latest version (v2012) of org.eclipse.swt,
or if you are really wild, load org.eclipse.swt from the HEAD stream.
If you are using Eclipse to browse the code, you will need to copy the
.classpath_xxx file for your platform to ".classpath".
For example, copy .classpath_win32 to .classpath
To see an example SWT OS binding (to the win32 API) look at:
org.eclipse.swt.internal.win32.OS - Java side JNI code
org.eclipse.swt/Eclipse SWT/win32/library/swt.c - 'C' side JNI code
If you really want to get your feet wet and start coding to the OS/2 API,
the first step is to create a top level shell with a button in it using
only library calls, and implement an event loop. Here is an example from
win32:
package org.eclipse.swt.examples.win32;
import org.eclipse.swt.internal.win32.*;
public class BigButton {
public static void main (String [] args) {
TCHAR lpClassName = new TCHAR (0, "BUTTON", true);
int hInstance = OS.GetModuleHandle (null);
int hwnd = OS.CreateWindowEx (
0,
lpClassName,
null,
OS.WS_OVERLAPPEDWINDOW | OS.WS_VISIBLE,
OS.CW_USEDEFAULT,
OS.CW_USEDEFAULT,
OS.CW_USEDEFAULT,
OS.CW_USEDEFAULT,
0,
0,
hInstance,
null);
MSG msg = new MSG ();
while (OS.GetMessage (msg, 0, 0, 0)) OS.DispatchMessage (msg);
}
}
So just to reiterate:
If you want to get an SWT OS/2 port project started, here's what you do:
- find a technical lead
- establish that you have a community
- report back to Mike Wilson, the SWT team lead, to officially launch the
project
Carolyn, Veronika, Steve, and Mike
Carsten Hintz <CarstenHintz@xxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
11/19/2001 08:05 AM
Please respond to platform-swt-dev
To: platform-swt-dev@xxxxxxxxxxx
cc:
Subject: [platform-swt-dev] OS/2 4.5x port in development?
hi all, is there any OS/2 (or eComStation) port of the SWT in work? if
not,
what would be the correct approach to do this for a team of willing
developers? I am new to Eclipse, but a prof. user of VAJ etc. as well as
an WebSphere
customer, IBM business partner, ex-IBMer and so on, if any of this
helps...
;-) I guess I could provoke considerable interest on this in the OS/2
OSS-community at www.netlabs.org <http://www.netlabs.org> feel free to contact me at
Carsten.Hintz@xxxxxxxxxxxxx <mailto:Carsten.Hintz@xxxxxxxxxxxxx> regarts
Carsten Hintz
dialog EDV Systementwicklung
www.dialog-edv.de
0511-98594026
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev