public class CActionImportanceOrder extends DefaultDockActionImportanceOrder{
@Override
protected double getImportance( DockAction action ){
if( action instanceof CommonDockAction ){
CAction caction = ((CommonDockAction)action).getAction();
DockActionImportance importance = caction.getClass().getAnnotation( DockActionImportance.class );
if( importance != null ){
return importance.value();
}
}
return super.getImportance( action );
}