* Gets the first parent {@link CStation} of <code>dockable</code>.
* @param dockable some dockable whose parent station is searched
* @return the parent station or <code>null</code> if not found
*/
protected CStation<?> getParent( Dockable dockable ){
DockStation dockStation = dockable.getDockParent();
while( dockStation != null ){
if( dockStation instanceof CommonDockStation<?,?>){
return ((CommonDockStation<?,?>)dockStation).getStation();
}
if( dockStation.asDockable() == null ){
dockStation = null;
}
else{
dockStation = dockStation.asDockable().getDockParent();
}
}
return null;
}