int limit = Math.max( 0, historyIndex - MAX_ENTRIES ); for ( int i = historyIndex - 1; i >= limit; i-- )
for ( int i = historyIndex - 1, j = 0; i >= 0 && j < MAX_ENTRIES; i-- )
			protected void createEntries( Menu menu )			{				int limit = Math.max( 0, historyIndex - MAX_ENTRIES );				for ( int i = historyIndex - 1; i >= limit; i-- )				{					IAction action = new HistoryItemAction( i, getItemText( i ) );					addActionToMenu( menu, action );				}			}