if (actions.length == 0)
{
return EMPTY_ZOOM_ACTION;
}
ZoomAction[] retval = EMPTY_ZOOM_ACTION;
Arrays.sort(actions, new ActionPluginMenuComparator());
boolean separatorPending = false;
int count = 0;
for (int i = 0; i < actions.length; i++)
{
final ActionPlugin actionPlugin = actions[i];