File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
durian-swt/src/main/java/com/diffplug/common/swt Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 7
7
- Shells now reposition themselves if they were going to open offscreen.
8
8
- Shells no longer set their image on Mac, so that they don't hijack the dock icon.
9
9
- Added ` ControlWrapper.transparent ` for efficiently passing ` Control ` to ` ControlWrapper ` .
10
+ - Added ` ControlWrapper.setParent ` which is a pure delegation to ` Control.setParent ` .
10
11
- Improved ` StructuredDrop.handler ` .
11
12
- Added ` SwtMisc.globalBounds ` for ` ControlWrapper ` .
12
13
Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ default boolean isDisposed() {
66
66
return getRootControl ().isDisposed ();
67
67
}
68
68
69
+ /**
70
+ * Changes the parent of the widget to be the one provided.
71
+ * Returns <code>true</code> if the parent is successfully changed
72
+ */
73
+ default boolean setParent (Composite parent ) {
74
+ return getRootControl ().setParent (parent );
75
+ }
76
+
69
77
/**
70
78
* Returns the wrapped {@link Control} (only appropriate for limited purposes!).
71
79
* <p>
You can’t perform that action at this time.
0 commit comments