public boolean ignoreChildren( DockStation station ) { for( DockSituationIgnore ignore : ignores ){ if( !ignore.ignoreChildren( station )) return false; } return true; } public boolean ignoreChildren( PerspectiveStation station ){
public boolean ignoreChildren( DockStation station ) { for( DockSituationIgnore ignore : ignores ){ if( !ignore.ignoreChildren( station )) return true; } return false; } public boolean ignoreChildren( PerspectiveStation station ){
public boolean ignoreChildren( PerspectiveStation station ){ for( DockSituationIgnore ignore : ignores ){ if( !ignore.ignoreChildren( station )) return true; } return false; } public boolean ignoreElement( DockElement element ) {
/** * Tells whether to ignore the children of the station when saving or not. If the children * are ignored, no factories are needed for them. This implementation forwards * the call to the {@link DockSituationIgnore} of this situation. * @param station the station whose children might be ignored * @return <code>true</code> if the station is saved as having no children */ protected boolean ignoreChildren( DockStation station ){ if( ignore == null ) return false; return ignore.ignoreChildren( station ); }
public boolean ignoreChildren( PerspectiveStation station ){ for( DockSituationIgnore ignore : ignores ){ if( !ignore.ignoreChildren( station )) return false; } return true; } public boolean ignoreElement( DockElement element ) {
public boolean ignoreChildren( DockStation station ) { return !ignore.ignoreChildren( station ); } public boolean ignoreChildren( PerspectiveStation station ){
public boolean ignoreChildren( PerspectiveStation station ){ return !ignore.ignoreChildren( station ); } public boolean ignoreElement( DockElement element ) {
PerspectiveStation station = element.asStation(); if( station != null ){ if( ignore == null || !ignore.ignoreChildren( station )){ int index = 0; for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
PerspectiveStation station = element.asStation(); if( station != null ){ if( ignore == null || !ignore.ignoreChildren( station )){ int index = 0; for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
/** * Removes recursively all children from <code>station</code>, but only * if the children are not filtered by <code>ignore</code>. * @param station a station to clean * @param ignore a filter */ protected void clean( DockStation station, DockSituationIgnore ignore ){ try{ controller.getRegister().setStalled( true ); if( !ignore.ignoreChildren( station ) ){ for( int i = station.getDockableCount()-1; i >= 0; i-- ){ Dockable dockable = station.getDockable( i ); if( !ignore.ignoreElement( dockable )){ DockStation check = dockable.asDockStation(); if( check != null ) clean( check, ignore ); station.drag( dockable ); } } } } finally{ controller.getRegister().setStalled( false ); } }