Skip to content

Commit 00f413c

Browse files
committed
Added CoatMux.Layer::getControl()
1 parent e63e9aa commit 00f413c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES.md

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

33
## [Unreleased]
4+
### Added
5+
- `CoatMux.Layer` now exposes its root `Control` instance ([#12](https://github.com/diffplug/durian-swt/issues/12)).
46
### Removed
57
- **BREAKING** Removed `ColorPool.getSystemColor()` ([#8](https://github.com/diffplug/durian-swt/issues/8)).
68
- **BREAKING** Switched type arguments of `TypedDataField` ([#3](https://github.com/diffplug/durian-swt/issues/3)).

durian-swt/src/main/java/com/diffplug/common/swt/CoatMux.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public RxGetter<Boolean> rxOnTop() {
8282
return currentLayer.map(opt -> opt.isPresent() && opt.get() == this);
8383
}
8484

85+
/** The control at the root of this layer. */
86+
public Control getControl() { return control; }
87+
8588
/** The handle which was returned by the {@link Coat.Returning}. */
8689
public T getHandle() {
8790
return handle;

0 commit comments

Comments
 (0)