* @return the first {@link CStation} that occurs on the path from
* <code>element</code> to the root and which is a working area
*/
private CStation<?> searchArea( DockElement element ){
DockStation station = element.asDockStation();
Dockable dockable = element.asDockable();
while( dockable != null || station != null ){
if( station != null && station instanceof CommonDockStation<?, ?>){
CStation<?> cstation = ((CommonDockStation<?,?>)station).getStation();
if( cstation.isWorkingArea() )
return cstation;
}
dockable = station == null ? null : station.asDockable();
station = dockable == null ? null : dockable.getDockParent();
}
return null;
}