You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# DurianSwt releases
2
2
3
-
### Version 3.3.0 - TBD ([javadoc](http://diffplug.github.io/durian-swt/javadoc/snapshot/), [snapshot](https://oss.sonatype.org/content/repositories/snapshots/com/diffplug/durian/durian-swt/))
3
+
### Version 3.4.0 - TBD ([javadoc](http://diffplug.github.io/durian-swt/javadoc/snapshot/), [snapshot](https://oss.sonatype.org/content/repositories/snapshots/com/diffplug/durian/durian-swt/))
4
+
5
+
### Version 3.3.0 - November 22nd 2019 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/3.3.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/3.3.0/view))
4
6
5
7
- Added `FlatBtn.setBackground` and `FlatBtn.setSelection`.
6
8
- Added `Shells.dontSetPositionOrSize` and `Shells.setCloseOnEscape`.
*[`ControlWrapper`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/ControlWrapper.html) - create custom widgets which properly encapsulate their base control.
31
-
*[`Coat`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/Coat.html) - a functional interface for populating an empty Composite.
32
-
*[`CoatMux`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/CoatMux.html) - a mechanism for layering and swapping Coats.
33
-
*[`SwtExec`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/SwtExec.html) - an `ExecutorService` which executes on the SWT thread.
34
-
*[`SwtExec.Guarded`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/SwtExec.Guarded.html) - an `ExecutorService` which is tied to the lifetime of an SWT widget. Say goodbye to `SWTException: Widget is disposed` forever! It can also subscribe to any kind of observable (Guava's ListenableFuture or RxJava's Observable), see [DurianRx](https://github.com/diffplug/durian-rx) for more info.
30
+
*[`ControlWrapper`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/ControlWrapper.html) - create custom widgets which properly encapsulate their base control.
31
+
*[`Coat`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/Coat.html) - a functional interface for populating an empty Composite.
32
+
*[`CoatMux`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/CoatMux.html) - a mechanism for layering and swapping Coats.
33
+
*[`SwtExec`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/SwtExec.html) - an `ExecutorService` which executes on the SWT thread.
34
+
*[`SwtExec.Guarded`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/SwtExec.Guarded.html) - an `ExecutorService` which is tied to the lifetime of an SWT widget. Say goodbye to `SWTException: Widget is disposed` forever! It can also subscribe to any kind of observable (Guava's ListenableFuture or RxJava's Observable), see [DurianRx](https://github.com/diffplug/durian-rx) for more info.
*[`Actions`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/jface/Actions.html) - builder and one-liner:
72
+
*[`Actions`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/jface/Actions.html) - builder and one-liner:
73
73
`Actions.create("Redo", this::redo);`
74
74
75
-
*[`LabelProviders`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/jface/LabelProviders.html) - builder and one-liner:
75
+
*[`LabelProviders`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/jface/LabelProviders.html) - builder and one-liner:
76
76
`LabelProviders.createWithText(Person::getName)`
77
77
78
-
*[`ColumnFormat`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/ColumnFormat.html) and [`ColumnViewerFormat`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/jface/ColumnViewerFormat.html) - tables and trees without boilerplate
78
+
*[`ColumnFormat`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/ColumnFormat.html) and [`ColumnViewerFormat`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/jface/ColumnViewerFormat.html) - tables and trees without boilerplate
79
79
80
80
```java
81
81
ColumnViewerFormat<Person> format =ColumnViewerFormat.builder();
@@ -89,15 +89,15 @@ TreeViewer tree = format.buildTree(parent);
89
89
90
90
### Resource management
91
91
92
-
*[`OnePerWidget`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/OnePerWidget.html) - a cache tied to the lifetime of an SWT Widget.
93
-
*[`ColorPool`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/ColorPool.html) - a pool of colors tied to the lifetime of a widget. `ColorPool.forWidget(widget).getColor(rgbValue)`
94
-
*[`ImageDescriptors`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/jface/ImageDescriptors.html) - use ImageDescriptors with proper resource sharing. `ImageDescriptors.set(btn, imageDescriptor)`
92
+
*[`OnePerWidget`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/OnePerWidget.html) - a cache tied to the lifetime of an SWT Widget.
93
+
*[`ColorPool`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/ColorPool.html) - a pool of colors tied to the lifetime of a widget. `ColorPool.forWidget(widget).getColor(rgbValue)`
94
+
*[`ImageDescriptors`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/jface/ImageDescriptors.html) - use ImageDescriptors with proper resource sharing. `ImageDescriptors.set(btn, imageDescriptor)`
95
95
96
96
### Interactive testing
97
97
98
98
Ideally, all UI code would have fully automated UI testing, but
99
99
such tests are time-consuming to write, so they often just don't
100
-
get written at all. [`InteractiveTest`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/InteractiveTest.html)
100
+
get written at all. [`InteractiveTest`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/InteractiveTest.html)
101
101
bridges the gap by making it easy to write user-in-the-loop guided tests. Furthermore,
102
102
these tests can even be run in a [headless enviroment on a CI server](https://github.com/diffplug/durian-swt/blob/master/build.gradle#L66-L93), where the test UI
103
103
will be opened, then automatically closed after a timeout. This ensures that the tests
+ `treeDefControl`, `treeDefComposite` - a [`TreeDef`](http://diffplug.github.io/durian/javadoc/snapshot/com/diffplug/common/base/TreeDef.html) for traversing UI elements.
137
137
+ `setEnabledDeep` - sets the enabled status of every child, grandchild, etc. of the given composite.
138
-
*[`SwtRx`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/SwtRx.html) - methods for converting SWT events and models to RxJava Observables.
139
-
*[`SwtDebug`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/SwtDebug.html) - utilities for debugging SWT events.
140
-
*[`OS`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/os/OS.html), [`Arch`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/os/Arch.html), and [`SwtPlatform`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/os/SwtPlatform.html) - detect things about the running system, and manipulate the SWT jars for build tools.
138
+
*[`SwtRx`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/SwtRx.html) - methods for converting SWT events and models to RxJava Observables.
139
+
*[`SwtDebug`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/SwtDebug.html) - utilities for debugging SWT events.
140
+
*[`OS`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/os/OS.html), [`Arch`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/os/Arch.html), and [`SwtPlatform`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/os/SwtPlatform.html) - detect things about the running system, and manipulate the SWT jars for build tools.
141
141
+ These do not require SWT or JFace, so you can add DurianSwt to your gradle or maven dependencies without needing to also figure out the SWT messiness.
142
142
+ You can also just copy-paste these straight into your own code - they have no external dependencies.
0 commit comments