Posts filed under 'SWT'
Today I want to show how to use of the open-source project SWT-Calendar. With a few lines of code you can implement a wonderful small calendar widget for SWT, that is not delivered by default.
I’ve written a tiny RCP where you can select a date.

If you click on the text-field you can edit and save a date. This dialog is very easy to integrate in your RCP, will preselect the date of the text-field and will solve all your problems with the missing calendar-widget. 

Downloads
Download the Calendar-Demo as Plug-In (Source included - 56kByte)
Download the Calendar-Demo as RCO (Source inluded - 6,2Mbyte)
April 10th, 2006
Probably you was already faced with the requirement to add small icons to your pulldowns. That looks very nice, but unfortunately there is no common SWT-Widget to realize this.
Fortunately the Eclipse-Framework is OpenSource and we can reprodruce the structure of a SWT-ComboBox. A Combo is not more than a text-field and a small button with an arrow. In addition is a event-handler implemented that shows a Composite as a tooltip with the entries of the “combo-list”. We just have to take this class and change the structure of the content. We don’t want to have a org.eclipse.swt.widgets.List, but a org.eclipse.swt.widgets.Table with multiple org.eclipse.swt.widgets.TableItems where you can specify an image…
Continue Reading March 3rd, 2006
In complex applications you also have very many images that want to be placed to the right time on the right place. And because some good software-architects already have concepted the model
, in the most cases you want to visualize a special object or a special property of an object with an image in your JFace-List or Tree. Imagine you have 50 JFace-Viewers and 300 different Icons. Do you really want to implement in every LabelProvider how and when to access to which image? I guess, no…
Continue Reading January 16th, 2006