Skip to content

Commit 868f1d1

Browse files
authored
Merge pull request #7 from diffplug/feat/gradle-6
Feat/gradle 6
2 parents 36e85c4 + 65f92ed commit 868f1d1

File tree

88 files changed

+659
-841
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+659
-841
lines changed

CHANGES.md

Lines changed: 31 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# DurianSwt releases
22

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))
3+
## [Unreleased]
64

5+
## [3.3.0] - 2019-11-02
76
- Added `FlatBtn.setBackground` and `FlatBtn.setSelection`.
87
- Added `Shells.dontSetPositionOrSize` and `Shells.setCloseOnEscape`.
98
- Shells now reposition themselves if they were going to open offscreen.
@@ -14,24 +13,20 @@
1413
- Added `SwtMisc.globalBounds` for `ControlWrapper`.
1514
- `SwtDebug.dumpEvent` is now null-safe.
1615

17-
### Version 3.2.1 - August 7th 2019 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/3.2.1/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/3.2.1/view))
18-
16+
## [3.2.1] - 2019-08-07
1917
- Added a non-coat version of `RadioGroup`.
2018
- Fixed `Shells.openOnActive()` to take advantage of `Shells.active()`.
2119

22-
### Version 3.2.0 - April 29th 2019 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/3.2.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/3.2.0/view))
23-
20+
## [3.2.0] - 2019-04-29
2421
- `Fonts.systemLarge()` was hardcoded to 12 points. This worked well on standard DPI windows, but was actually smaller than the normal font on retina mac. Now adds 33% to the normal size, which exactly matches the previous behavior on Windows, but works better on other platforms.
2522
- Added `SwtMisc.getSystemCursor` and `getSystemIcon`.
2623
- Added `Shells.dontOpen` which makes it possible to create a shell that doesn't open.
2724
- Added `Shells.active` which finds the currently active shell.
2825

29-
### Version 3.1.1 - April 24th 2019 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/3.1.1/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/3.1.1/view))
30-
26+
## [3.1.1] - 2019-04-24
3127
- Fixed a bug in `StructuredDrop` which caused `dragLeave` events to get swallowed.
3228

33-
### Version 3.1.0 - January 2nd 2019 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/3.1.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/3.1.0/view))
34-
29+
## [3.1.0] - 2019-01-02
3530
- `Shells` now detects the monitor using the center of the proposed bounds, rather than the top-left.
3631
- Added `StructuredDrag.copyToClipboard()` and `StructuredDrop.pasteFromClipboard()` [(#2)](https://github.com/diffplug/durian-swt/pull/2).
3732
- Reduced noise in `InteractiveTest` failures.
@@ -40,111 +35,96 @@
4035
- Made the spacebar visible in `Actions.getAcceleratorString()`.
4136
- Fix `StructuredDrop` for files when executing multiple drags from the desktop.
4237

43-
### Version 3.0.0 - August 1st 2018 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/3.0.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/3.0.0/view))
44-
38+
## [3.0.0] - 2018-08-01
4539
* Extracted the `com.diffplug.common.swt.os` package into its own jar with no dependencies, published to `com.diffplug.durian:durian-swt.os`.
4640
* Added `com.diffplug.durian:durian-swt.{SWT_PLATFORM_CODE}` for each of `win x86`, `win x64`, `linux x86`, `linux x64`, `mac x64`.
47-
+ Only used for `SmoothTable`, if you don't use `SmoothTable` then you don't need the platform-specific jar.
41+
+ Only used for `SmoothTable`, if you don't use `SmoothTable` then you don't need the platform-specific jar.
4842
+ Added useful DnD stuff to `com.diffplug.common.swt.dnd.`
4943
+ Added useful widgets to `com.diffplug.common.swt.widgets.`
5044

51-
### Version 3.0.0.BETA2 - March 8th 2017 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/3.0.0.BETA2/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/3.0.0.BETA2/view))
52-
45+
## [3.0.0.BETA2] - 2017-03-08
5346
* Added `TypedDataField` for storing strongly-typed data into widgets.
5447
* Added `SwtExec.guardOn(DisposableEar ear)`.
5548
* `InteractiveTest.setResult()` can now be called from any thread, and the user can pass any exception.
5649
* Implemented `scheduleAtFixedRate` and `scheduleWithFixedDelay` for `SwtExec` and `SwtExec.Guarded`.
5750
* Improved `CoatMux`'s reliability.
5851
* Deprecated `SwtMisc.requestLayout`.
5952

60-
### Version 3.0.0.BETA - February 7th 2017 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/3.0.0.BETA/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/3.0.0.BETA/view))
61-
53+
## [3.0.0.BETA] - 2017-02-07
6254
* `SwtExec.Guarded` is now a `GuardedExecutor`.
6355
* Added `SwtRx.disposableEar()`.
6456
* Added `SwtPlatform.toOS()`.
6557
* Improvements to `SwtRx.textImmediate` and `SwtRx.textConfirmed`:
66-
* now prevents double-calls to `setText(String str)`.
67-
* selections are now preserved in a more intuitive way when the text changes.
58+
* now prevents double-calls to `setText(String str)`.
59+
* selections are now preserved in a more intuitive way when the text changes.
6860
* `@SwtThread` can now annotate exceptions to the rules with `@SwtThread(SwtThread.Kind.THREADSAFE)`.
6961
* Added `Corner.getPosition(Control | ToolItem)`.
7062
* Added `Shells.setAlpha(int alpha)`.
7163

72-
### Version 3.0.0.ALPHA - November 11th 2016 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/3.0.0.ALPHA/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/3.0.0.ALPHA/view))
73-
64+
## [3.0.0.ALPHA] - 2016-11-11
7465
* Bumped RxJava to 2.0, and dealt with some initial fallout from that change.
7566

76-
### Version 2.0.0 - July 13th 2016 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/2.0.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/2.0.0/view))
77-
67+
## [2.0.0] - 2016-07-13
7868
* Introduced the `SwtThread` annotation to mark that a method is only safe to use from an SWT thread.
7969
* Added `SwtExec.swtOnly()` as a high-performance, non-thread-safe version of `SwtExec.immediate()` (thanks to David Karnok).
8070
* Renamed `Shells.openOnAndBlock()` to `Shells.openOnBlocking()`.
8171
* `SwtScheduler` now honors the `Scheduler/Worker` contracts (thanks to David Karnok).
8272
* `ColumnFormat` and `ColumnViewerFormat` now expose all their data through getters.
8373
* Fallout from 2.0 bump of durian-rx.
8474

85-
### Version 1.7.0 - April 6th 2016 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.7.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.7.0/view))
86-
75+
## [1.7.0] - 2016-04-06
8776
* Upgraded Eclipse/SWT dependencies from Luna SR2 to Mars.2 (4.4.2 to 4.5.2).
8877
* Changed `SwtDebug` event names to their 4.5-based names.
8978
* `InteractiveTest` can now pass/fail itself automatically, for self-testing gui tests.
9079
* Added `SwtRx.combo()` methods for reactive control of combo boxes.
9180
* Added `SwtMisc.requestLayout()`, which is backported from Eclipse Neon. It will be deprecated when Neon comes out.
9281

93-
### Version 1.6.0 - February 9th 2016 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.6.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.6.0/view))
94-
82+
## [1.6.0] - 2016-02-09
9583
* Ditched Guava for DurianGuava.
9684

97-
### Version 1.5.1 - December 30th 2015 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.5.1/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.5.1/view))
98-
85+
## [1.5.1] - 2015-12-30
9986
* Fixed a bug in `OS.calculateNative` on linux x86 systems that report their `os.arch` as `i386`.
10087

101-
### Version 1.5.0 - December 11th 2015 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.5.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.5.0/view))
102-
88+
## [1.5.0] - 2015-12-11
10389
* Added `Actions.setCallback`, which allows behavior based on the actual IAction which ends up being created.
10490
* Added `SwtMisc.copyEvent()`.
10591
* Added `SwtMisc.withGcRun` and `SwtMisc.withGcCompute`, which allows quick access to a GC for e.g. computing the size of some text.
10692

107-
### Version 1.4.0 - November 18th 2015 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.4.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.4.0/view))
108-
93+
## [1.4.0] - 2015-11-18
10994
* `SwtExec.Guarded::subscribe` now supports `CompletionStage` and `CompletableFuture`, in support of improvements made to DurianRx 1.2.0.
11095
* Added `SwtMisc.setFlag()`.
11196
* Added `JFaceRx`, which exposes JFace properties as RxJava observables.
11297

113-
### Version 1.3.0 - October 19th 2015 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.3.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.3.0/view))
114-
98+
## [1.3.0] - 2015-10-19
11599
* Changed OSGi metadata Bundle-SymbolicName to `com.diffplug.durian.swt`.
116100
* OSGi metadata is now auto-generated using bnd.
117101
* Added `ColumnViewerFormat.ColumnBuilder::setFinalSetup()` which allows us to get the `ViewerColumn` object and setup something such as a `CellEditor` on it.
118102
* `ColumnViewerFormat` no longer requires a `LabelProvider`, since we might set that stuff up in `setFinalSetup()`.
119103
* Fixed a bug in `Shells` which caused windows to always open on the primary monitor.
120104
* `Actions` is now based on `runWithEvent()` rather than `run()`. This allows implementors to get the `Event` which is causing the action to fire, which can allow more detailed actions to be taken.
121105

122-
### Version 1.2.0 - September 14th 2015 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.2.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.2.0/view))
123-
106+
## [1.2.0] - 2015-09-14
124107
* Major improvement to the `CoatMux` API.
125108
* Added `ColorPool.getSystemColor(int systemColor)` so that ColorPool can be your one-stop-shop for getting colors.
126109
* Added some methods to `SwtMisc`:
127-
* `Shell rootShell(Control control)`
128-
* `void forEachDeep(Composite root, Consumer<Control> ctlSetter)`
129-
* `void setForegroundDeep(Composite root, Color foreground)`
130-
* `void setBackgroundDeep(Composite root, Color background)`
131-
* `Rectangle globalBounds(Control control)`
132-
* `Rectangle toDisplay(Control control, Rectangle rect)`
133-
* `Optional<Monitor> monitorFor(Point p)`
110+
* `Shell rootShell(Control control)`
111+
* `void forEachDeep(Composite root, Consumer<Control> ctlSetter)`
112+
* `void setForegroundDeep(Composite root, Color foreground)`
113+
* `void setBackgroundDeep(Composite root, Color background)`
114+
* `Rectangle globalBounds(Control control)`
115+
* `Rectangle toDisplay(Control control, Rectangle rect)`
116+
* `Optional<Monitor> monitorFor(Point p)`
134117
* Fixed `SwtMisc.setEnabledDeep()` - it now skips `Composite`s which haven't been subclassed.
135118
* Fixed `SwtRx.toggle()` now works with radio buttons.
136119
* Fixed `Shells` so that the dialogs it creates don't automatically close on escape, and so that they are better about opening on-screen.
137120

138-
### Version 1.1.1 - July 27th 2015 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.1.1/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.1.1/view))
139-
121+
## [1.1.1] - 2015-07-27
140122
* Gah! MANIFEST.MF still had -SNAPSHOT version. Fixed now. Would be really nice if we could get MANIFEST.MF generation working.
141123

142-
### Version 1.1 - July 26th 2015 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.1/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.1/view))
143-
124+
## [1.1] - 2015-07-26
144125
* Fixed a linux-specific bug in `Shells.openOnActive()`.
145126
* Fixed an NPE in `Shells.openOnActive()`.
146127
* Made `InteractiveTest.testShellWithoutHandle()` a little more forgiving.
147128

148-
### Version 1.0 - May 13th 2015 ([javadoc](http://diffplug.github.io/durian-swt/javadoc/1.0/), [jcenter](https://bintray.com/diffplug/opensource/durian-swt/1.0/view))
149-
129+
## [1.0] - 2015-05-13
150130
* First stable release.

CONTRIBUTING.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Pull requests are welcome, preferably against `master`.
44

5-
Every successful Travis CI build on branch `master` is automatically published to [`https://oss.sonatype.org/content/repositories/snapshots`](https://oss.sonatype.org/content/repositories/snapshots/com/diffplug/), and its javadoc are published [here](http://diffplug.github.io/durian-swt/javadoc/snapshot/).
6-
75
## Build instructions
86

97
It's a bog-standard gradle build.
@@ -30,13 +28,13 @@ By contributing your code, you agree to license your contribution under the term
3028
All files are released with the Apache 2.0 license as such:
3129

3230
```
33-
Copyright 2015 DiffPlug
31+
Copyright 2020 DiffPlug
3432
3533
Licensed under the Apache License, Version 2.0 (the "License");
3634
you may not use this file except in compliance with the License.
3735
You may obtain a copy of the License at
3836
39-
http://www.apache.org/licenses/LICENSE-2.0
37+
https://www.apache.org/licenses/LICENSE-2.0
4038
4139
Unless required by applicable law or agreed to in writing, software
4240
distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)