Re: [Xswt-developer] FormToolkit support
Brought to you by:
dvorme
|
From: David J. O. <dj...@co...> - 2006-10-21 07:05:34
|
Markus, I just committed this code to the main XSWT plugin. Thanks much! This isn't an ideal solution though. Currently, we have the following dependencies: - XSWT Library: Just SWT - XSWT Plugin: SWT and org.eclipse.ui We currently don't depend on org.eclipse.ui.forms and I don't think we should force this dependency on folks. The choices right now seem to be: (a) add another plugin that depends on XSWT and org.eclipxe.ui.forms and includes only this one class; (b) put this class in XSWT proper and if folks want to use it, they'll have to copy it into their own project. In the meantime, this one file will always have compile errors due to the unsatisfied dependency. For now, I've chosen (b). If someone comes up with a better solution, please let me (us) know. :-) Best regards, Dave Orme ----- Original Message ----- From: Markus Wolf <ma...@em...> To: xsw...@li... Sent: Monday, October 16, 2006 4:30:22 PM GMT-0600 Subject: Re: [Xswt-developer] FormToolkit support -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've attached a slightly modified variant of the FormToolkitLayoutBuilder which enabled support to reuse the FormToolkit. There are two options: 1. Get the toolkit from the LayoutBuilder and use it. Then one should not dispose the toolkit, just as the SWT policy recommend to only dispose what you've created by yourself. 2. Set a tookit with the constructor and let the LayoutBuilder use your precreated one. Then one should dispose the toolkit. With this simple extensions it is relative easy to implement a FormEditor using the org.eclipse.ui.forms classes and a ManagedForm. Feel free to contribute this to the codebase. Markus Wolf - -- > > emedia-solutions wolf > Wedeler Landstrasse 63 > 22559 Hamburg > (040) 550 083 70 > >> web: http://www.emedia-solutions-wolf.de >> mail: ma...@em... >> pgp: http://wwwkeys.de.pgp.net > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFM/nueyJE91ndMG4RAnpfAJ9lVdv2ftQs8xM+1zedyKED24Cp0wCcDBxA inV1B3DsLrW/HtQmysVtWnk= =stzx -----END PGP SIGNATURE----- |