210211212213214215216217218219220
CAction result = dockable.getAction( key ); if( result == null ){ return defaultAction; } return result.intern(); } public DockAction getDockAction( int index ){ if( index != 0 ) throw new IllegalArgumentException( "only index=0 supported" );
156157158159160161162163164165166
CAction action = dockable.getAction( CDockable.ACTION_KEY_MINIMIZE_HOLD ); if( action == null ){ handle.resetHoldAction(); } else{ handle.getActions().setHoldAction( action.intern() ); } } @Override public Rectangle getExpansionBounds() {
8788899091929394959697
DockAction next = null; if( control != null ){ if( dockable.isCloseable() ){ CAction cnext = dockable.getAction( CDockable.ACTION_KEY_CLOSE ); if( cnext != null ) next = cnext.intern(); else next = control.createCloseAction( dockable ); } }