diff --git a/docking-api/src/ModernDocking/Dockable.java b/docking-api/src/ModernDocking/Dockable.java index 4612de3..77f07cd 100644 --- a/docking-api/src/ModernDocking/Dockable.java +++ b/docking-api/src/ModernDocking/Dockable.java @@ -100,12 +100,25 @@ default boolean isFloatingAllowed() { * force the dockable to remain in the root it started in. * this is useful for having a new floating frame with many dockables that are only allowed in that one frame. * - * @return Should this dockable be limited to the root it starts in + * @return Should this dockable be limited to the root it starts in? + * + * @deprecated Replaced with isLimitedToWindow. Will be removed in future release. */ + @Deprecated(since = "0.12.0", forRemoval = true) default boolean isLimitedToRoot() { return false; } + /** + * force the dockable to remain in the window it started in. + * this is useful for having a new floating window with many dockables that are only allowed in that one window. + * + * @return Should this dockable be limited to the window it starts in? + */ + default boolean isLimitedToWindow() { + return false; + } + /** * style of the dockable. vertical will disallow the east and west regions. horizontal will disallow the north and south regions. * both will allow all 4 regions diff --git a/docking-api/src/ModernDocking/api/DockingAPI.java b/docking-api/src/ModernDocking/api/DockingAPI.java index 368176a..12b22c7 100644 --- a/docking-api/src/ModernDocking/api/DockingAPI.java +++ b/docking-api/src/ModernDocking/api/DockingAPI.java @@ -140,6 +140,7 @@ public void registerDockable(Dockable dockable) { * Check if a dockable has already been registered * * @param persistentID The persistent ID to look for + * @return Has the dockable been registered? */ public boolean isDockableRegistered(String persistentID) { return getDockables().stream().anyMatch(dockable -> Objects.equals(persistentID, dockable.getPersistentID()));