@Override protected boolean shouldTest( DockStation station ) { return control.getStation( station ) == null; } }
@Override protected boolean shouldTest( DockStation station ) { return control.getStation( station ) == null; } }
/** * Gets the {@link DockStation} which was registered with the name {@link CControl#EXTERNALIZED_STATION_ID}. * @return the station which will be the parent of all the new {@link ExternalizingCGridArea}s */ protected DockStation getScreenDockStation(){ CStation<?> screen = control.getStation( CControl.EXTERNALIZED_STATION_ID ); return screen.getStation(); }
public boolean ignoreChildren( DockStation station ) { CStation<?> cstation = getStation( station ); if( cstation != null ) return cstation.isWorkingArea(); return false; } public boolean ignoreChildren( PerspectiveStation station ){
/** * Gets the {@link DockStation} which was registered with the name {@link CControl#EXTERNALIZED_STATION_ID}. * @return the station which will be the parent of all the new {@link ExternalizingCGridArea}s */ protected DockStation getScreenDockStation(){ CStation<?> screen = control.getStation( CControl.EXTERNALIZED_STATION_ID ); return screen.getStation(); }
public boolean ignoreChildren( DockStation station ) { CStation<?> cstation = getStation( station ); if( cstation != null ) return cstation.isWorkingArea(); return false; } public boolean ignoreChildren( PerspectiveStation station ){
/** * Searches along the path to the root {@link DockStation} the first {@link CStation} that matches * the {@link DockStation}. If <code>intern</code> is a {@link CStation}, then this method behaves * as if {@link #getStation(DockStation)} was called. If the parent of <code>intern</code> is a {@link CStation}, * then this method behaves as if <code>getStation( intern.getDockParent() )</code> was called. * @param intern the starting point for the search of a {@link CStation} * @return the next {@link CStation} on the path from <code>intern</code> (incl.) to the root station (incl.) */ public CStation<?> findStation( DockStation intern ){ CStation<?> result = null; while( result == null && intern != null ){ result = getStation( intern ); Dockable dockable = intern.asDockable(); if( dockable == null ){ intern = null; }else{ intern = dockable.getDockParent(); } } return result; }
/** * Register <code>station</code> at the {@link CControl} in whose realm this factory works. * @param station the station to register * @param root whether to set the root flag or not */ protected void registerStation( CStation<?> station, boolean root ){ if( control.getStation( station.getUniqueId() ) != station ){ control.addStation( station, root ); } CDockable dockable = station.asDockable(); if( dockable != null ){ if( dockable instanceof SingleCDockable ){ SingleCDockable single = (SingleCDockable)dockable; if( control.getSingleDockable( single.getUniqueId() ) != single ){ control.addDockable( single ); } } } }
/** * Register <code>station</code> at the {@link CControl} in whose realm this factory works. * @param station the station to register * @param root whether to set the root flag or not */ protected void registerStation( CStation<?> station, boolean root ){ if( control.getStation( station.getUniqueId() ) != station ){ control.addStation( station, root ); } CDockable dockable = station.asDockable(); if( dockable != null ){ if( dockable instanceof SingleCDockable ){ SingleCDockable single = (SingleCDockable)dockable; if( control.getSingleDockable( single.getUniqueId() ) != single ){ control.addDockable( single ); } } } }
for( int i = history.size()-1; i >= 0; i-- ){ String historyRoot = history.get( i ).getRoot(); CStation<?> rootStation = control.getStation( historyRoot ); if( rootStation != null ){ container = getContainer( rootStation );
for( int i = history.size()-1; i >= 0; i-- ){ String historyRoot = history.get( i ).getRoot(); CStation<?> rootStation = control.getStation( historyRoot ); if( rootStation != null ){ container = getContainer( rootStation );
@Override public MaximizedModeArea getMaximizeArea( Dockable dockable, Location history ){ MaximizedModeArea area = super.getMaximizeArea( dockable, history ); if( area == null ){ DockStation parent = dockable.getDockParent(); while( parent != null ){ CStation<?> station = control.getStation( parent ); if( station != null ){ CStationContainer container = control.getRegister().getContainer( station ); if( container != null ){ CStation<? extends DockStation> result = container.getDefaultStation( ExtendedMode.MAXIMIZED ); if( result != null ){ return getMaximizeArea( result.getStation() ); } } } Dockable temp = parent.asDockable(); if( temp == null ){ parent = null; } else{ parent = temp.getDockParent(); } } } return area; } }
@Override public MaximizedModeArea getMaximizeArea( Dockable dockable, Location history ){ MaximizedModeArea area = super.getMaximizeArea( dockable, history ); if( area == null ){ DockStation parent = dockable.getDockParent(); while( parent != null ){ CStation<?> station = control.getStation( parent ); if( station != null ){ CStationContainer container = control.getRegister().getContainer( station ); if( container != null ){ CStation<? extends DockStation> result = container.getDefaultStation( ExtendedMode.MAXIMIZED ); if( result != null ){ return getMaximizeArea( result.getStation() ); } } } Dockable temp = parent.asDockable(); if( temp == null ){ parent = null; } else{ parent = temp.getDockParent(); } } } return area; } }
if( layout.isAreaSet()){ if( layout.getArea() != null ){ CStation<?> station = control.getStation( layout.getArea() ); if( station == null ){ DelayedWorkingAreaSetter setter = new DelayedWorkingAreaSetter( layout.getArea(), dockable, control );
if( layout.isAreaSet()){ if( layout.getArea() != null ){ CStation<?> station = control.getStation( layout.getArea() ); if( station == null ){ DelayedWorkingAreaSetter setter = new DelayedWorkingAreaSetter( layout.getArea(), dockable, control );
CLocationMode mode = getMode( path ); if( mode != null ){ CStation<?> station = control.getOwner().getStation( root ); if( station != null ){ if( mode.respectWorkingAreas( station.getStation() ) && mode.isRepresenting( station.getStation() )){
CLocationMode mode = getMode( path ); if( mode != null ){ CStation<?> station = control.getOwner().getStation( root ); if( station != null ){ if( mode.respectWorkingAreas( station.getStation() ) && mode.isRepresenting( station.getStation() )){
DockableProperty property = entry.getLocation(); CStation<?> station = getStation( root ); if( station != null ){ if( noBackwardsTransformation ){
DockableProperty property = entry.getLocation(); CStation<?> station = getStation( root ); if( station != null ){ if( noBackwardsTransformation ){
CStation<?> station = control.getOwner().getStation( root ); if( station != null ){ if( newMode.respectWorkingAreas( station.getStation() )){