* @param action the action whose location is searched
* @param tab the state of a tab
* @return the location or <code>null</code> to select the default location
*/
protected EclipseTabDockActionLocation getLocation( CAction action, EclipseTabStateInfo tab ){
EclipseTabDockAction annotation = action.getClass().getAnnotation( EclipseTabDockAction.class );
if( annotation != null ){
return getLocation( annotation, tab );
}
else{
return null;