* @param dockable some element whose root-station is searched
* @return the root-station or <code>null</code> if not found
*/
public CStationPerspective getRoot( PerspectiveDockable dockable ){
while( dockable != null ){
PerspectiveStation parent = dockable.getParent();
if( parent == null ){
return null;
}
if( parent instanceof CommonElementPerspective ){
CStationPerspective station = ((CommonElementPerspective)parent).getElement().asStation();
if( perspective.getStation( station.getUniqueId() ) != null ){
return station;
}
}
dockable = parent.asDockable();
}
return null;
}