public boolean ignoreElement( DockElement element ) { for( DockSituationIgnore ignore : ignores ){ if( !ignore.ignoreElement( element )) return false; } return true; } public boolean ignoreElement( PerspectiveElement element ){
/** * Tells whether to ignore this element when saving. If an element is ignored, no * factory is needed for it. This implementation forwards * the call to the {@link DockSituationIgnore} of this situation. * @param element the element which might not be saved * @return <code>true</code> if the element should not be saved */ protected boolean ignoreElement( DockElement element ){ if( ignore == null ) return false; return ignore.ignoreElement( element ); }
public boolean ignoreElement( PerspectiveElement element ){ return !ignore.ignoreElement( element ); } };
public boolean ignoreElement( DockElement element ) { return !ignore.ignoreElement( element ); } public boolean ignoreElement( PerspectiveElement element ){
public boolean ignoreElement( PerspectiveElement element ){ for( DockSituationIgnore ignore : ignores ){ if( !ignore.ignoreElement( element )) return false; } return true; } };
public boolean ignoreElement( DockElement element ) { for( DockSituationIgnore ignore : ignores ){ if( !ignore.ignoreElement( element )) return true; } return false; } public boolean ignoreElement( PerspectiveElement element ){
public boolean ignoreElement( PerspectiveElement element ){ for( DockSituationIgnore ignore : ignores ){ if( !ignore.ignoreElement( element )) return true; } return false; } };
/** * Removes all child-parent relations expect the ones filtered out * by <code>ignore</code>. * @param ignore a filter, never <code>null</code> */ protected void clean( DockSituationIgnore ignore ){ for( RootInfo root : roots.values() ){ if( !ignore.ignoreElement( root.getStation() )){ clean( root.getStation(), ignore ); } } }
if( ignore != null && ignore.ignoreElement( element )){ return null;
if( ignore != null && ignore.ignoreElement( element )){ return null;
/** * 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 ); } }