public void dockingComplete(final DockingEvent dockingEvent) {
if(!isEnabled()) {
return;
}
Dockable dockable = dockingEvent.getDockable();
DockingState info = getDockingState(dockable);
// if docking has just completed, then we cannot be in a minimized state
info.setMinimizedConstraint(MinimizationManager.UNSPECIFIED_LAYOUT_CONSTRAINT);
// update the floating state
RootWindow window = RootWindow.getRootContainer(dockable.getComponent());
FloatManager floatManager = DockingManager.getLayoutManager().getFloatManager();
Component frame = window==null? null: window.getRootContainer();
if(frame instanceof DockingFrame) {
String groupId = ((DockingFrame)window.getRootContainer()).getGroupName();
floatManager.addToGroup(dockable, groupId);