Skip to content

Commit 756711e

Browse files
committed
Publish 3.3.0
1 parent 164d6f5 commit 756711e

File tree

3 files changed

+27
-25
lines changed

3 files changed

+27
-25
lines changed

CHANGES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# DurianSwt releases
22

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))
46

57
- Added `FlatBtn.setBackground` and `FlatBtn.setSelection`.
68
- Added `Shells.dontSetPositionOrSize` and `Shells.setCloseOnEscape`.

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ output = [
1313
].join('\n');
1414
-->
1515
[![Maven artifact](https://img.shields.io/badge/mavenCentral-com.diffplug.durian%3Adurian--swt-blue.svg)](https://bintray.com/diffplug/opensource/durian-swt/view)
16-
[![Latest version](https://img.shields.io/badge/latest-3.2.1-blue.svg)](https://github.com/diffplug/durian-swt/releases/latest)
17-
[![Javadoc](https://img.shields.io/badge/javadoc-OK-blue.svg)](https://diffplug.github.io/durian-swt/javadoc/3.2.1/)
16+
[![Latest version](https://img.shields.io/badge/latest-3.3.0-blue.svg)](https://github.com/diffplug/durian-swt/releases/latest)
17+
[![Javadoc](https://img.shields.io/badge/javadoc-OK-blue.svg)](https://diffplug.github.io/durian-swt/javadoc/3.3.0/)
1818
[![License Apache](https://img.shields.io/badge/license-Apache-blue.svg)](https://tldrlegal.com/license/apache-license-2.0-(apache-2.0))
1919

20-
[![Changelog](https://img.shields.io/badge/changelog-3.3.0--SNAPSHOT-brightgreen.svg)](CHANGES.md)
20+
[![Changelog](https://img.shields.io/badge/changelog-3.3.0-brightgreen.svg)](CHANGES.md)
2121
[![Travis CI](https://travis-ci.org/diffplug/durian-swt.svg?branch=master)](https://travis-ci.org/diffplug/durian-swt)
2222
[![Live chat](https://img.shields.io/badge/gitter-live_chat-brightgreen.svg)](https://gitter.im/diffplug/durian)
2323
<!---freshmark /shields -->
@@ -27,11 +27,11 @@ output = prefixDelimiterReplace(input, 'https://{{org}}.github.io/{{name}}/javad
2727
-->
2828
### Infrastructure
2929

30-
* [`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.
3535

3636
```java
3737
SwtExec.async().guardOn(textBox).subscribe(serverResponse, txt -> {
@@ -41,7 +41,7 @@ SwtExec.async().guardOn(textBox).subscribe(serverResponse, txt -> {
4141

4242
### Fluent builders
4343

44-
* [`Layouts`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/Layouts.html) - all the layouts you'll need in SWT
44+
* [`Layouts`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/Layouts.html) - all the layouts you'll need in SWT
4545

4646
```java
4747
void textOkCanel(Composite cmp) {
@@ -60,7 +60,7 @@ void textOkCanel(Composite cmp) {
6060
}
6161
```
6262

63-
* [`Shells`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/Shells.html) - dialogs without boilerplate
63+
* [`Shells`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/Shells.html) - dialogs without boilerplate
6464

6565
```java
6666
Shells.builder(SWT.DIALOG_TRIM, this::textOkCanel)
@@ -69,13 +69,13 @@ Shells.builder(SWT.DIALOG_TRIM, this::textOkCanel)
6969
.openOnDisplayBlocking();
7070
```
7171

72-
* [`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:
7373
`Actions.create("Redo", this::redo);`
7474

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:
7676
`LabelProviders.createWithText(Person::getName)`
7777

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
7979

8080
```java
8181
ColumnViewerFormat<Person> format = ColumnViewerFormat.builder();
@@ -89,15 +89,15 @@ TreeViewer tree = format.buildTree(parent);
8989

9090
### Resource management
9191

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)`
9595

9696
### Interactive testing
9797

9898
Ideally, all UI code would have fully automated UI testing, but
9999
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)
101101
bridges the gap by making it easy to write user-in-the-loop guided tests. Furthermore,
102102
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
103103
will be opened, then automatically closed after a timeout. This ensures that the tests
@@ -129,23 +129,23 @@ InteractiveTest.testCoat(message, cmp -> {
129129

130130
### Miscellaneous stuff
131131

132-
* [`SwtMisc`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/SwtMisc.html) - useful static methods.
132+
* [`SwtMisc`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/SwtMisc.html) - useful static methods.
133133
+ `blockForError`, `blockForSuccess`, `blockForQuestion`, etc. - opens a dialog and blocks for the user's response, can be called from any thread.
134134
+ `loopUntil`, `loopUntilDisposed`, `loopUntilGet` - spins the SWT display loop until some condition is satisfied.
135135
+ `systemFontHeight/Width`, `scaleByFont`, `scaleByFontHeight` - resolution-independent sizes.
136136
+ `treeDefControl`, `treeDefComposite` - a [`TreeDef`](http://diffplug.github.io/durian/javadoc/snapshot/com/diffplug/common/base/TreeDef.html) for traversing UI elements.
137137
+ `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.
141141
+ 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.
142142
+ You can also just copy-paste these straight into your own code - they have no external dependencies.
143143
```java
144144
String installerExtension = OS.getNative().winMacLinux("exe","dmg","sh");
145145
String helperBinary = "driver_" + Arch.getNative().x86x64("", "_64") + ".dll";
146146
String swtJarName = "org.eclipse.swt." + SwtPlatform.getRunning();
147147
```
148-
* [`ViewerMisc`](https://diffplug.github.io/durian-swt/javadoc/3.2.1/com/diffplug/common/swt/jface/ViewerMisc.html) - useful static methods for JFace viewers.
148+
* [`ViewerMisc`](https://diffplug.github.io/durian-swt/javadoc/3.3.0/com/diffplug/common/swt/jface/ViewerMisc.html) - useful static methods for JFace viewers.
149149
+ `singleSelection`, `multiSelection` - returns an RxBox for listening to and setting the selection of a viewer.
150150
+ `setTreeContentProvider`, `setLazyTreeContentProvider` - uses a TreeDef to provide the content of a TreeViewer.
151151

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
stable=3.2.1
2-
version=3.3.0-SNAPSHOT
1+
stable=3.3.0
2+
version=3.3.0
33
name=durian-swt
44
#group=com.diffplug.durian (moved to build.gradle to workaround gradle classpath problems)
55
description=DurianSwt - Reactive utilities and fluent builders for SWT

0 commit comments

Comments
 (0)