private void ensureOnlyOnThisNode( Path placeholder ){ if( placeholder != null ){ getAccess().getPlaceholderSet().set( this, placeholder, this ); } }
private void updatePlaceholders( Dockable dockable, boolean keep, PlaceholderStrategy strategy ){ Path placeholder = strategy.getPlaceholderFor( dockable ); if( placeholder != null ){ if( !keep ){ getAccess().getPlaceholderSet().set( null, placeholder ); } else { getAccess().getPlaceholderSet().set( this, placeholder ); } } DockStation station = dockable.asDockStation(); if( station != null ){ for( int i = 0, n = station.getDockableCount(); i<n; i++ ){ updatePlaceholders( station.getDockable( i ), keep, strategy ); } } }
/** * Sets information about the placeholders of a {@link DockStation} that was * child of this node. * @param placeholderMap the placeholder information, can be <code>null</code> */ public void setPlaceholderMap( PlaceholderMap placeholderMap ){ if( this.placeholderMap != null ){ this.placeholderMap.setPlaceholderStrategy( null ); } this.placeholderMap = placeholderMap; if( this.placeholderMap != null ){ this.placeholderMap.setPlaceholderStrategy( getAccess().getOwner().getPlaceholderStrategy() ); getAccess().getPlaceholderSet().removeDoublePlaceholders( this, placeholderMap ); } }
if( handle != null ){ if( updatePlaceholders ){ getAccess().getPlaceholderSet().set( this, handle.getDockable() ); getAccess().getPlaceholderSet().set( this, dockable );
return false; getAccess().getPlaceholderSet().set( null, placeholder, this ); leaf.setPlaceholders( getPlaceholders() ); Node node = createNode( -1 );
boolean done = station.drop( dockable, stationLocation ); if( done ){ getAccess().getPlaceholderSet().set( null, placeholder, this ); return true;