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