if ( iSelectedIndex < elPaletteEntries.size( ) - 1 )
if ( iSelectedIndex < elPaletteEntries1.size( ) - 1 )
	public void keyPressed( KeyEvent e )	{		switch ( e.keyCode )		{			case SWT.ARROW_DOWN :				if ( iSelectedIndex < elPaletteEntries.size( ) - 1 )				{					iSelectedIndex++;					scrollToView( iSelectedIndex );					coPaletteEntries.redraw( );				}				break;			case SWT.ARROW_UP :				if ( iSelectedIndex > 0 )				{					iSelectedIndex--;					scrollToView( iSelectedIndex );					coPaletteEntries.redraw( );				}				break;			case SWT.CR :				if ( coPaletteEntries.isFocusControl( ) )				{					coEditor.setFocus( );				}				break;			case SWT.PAGE_DOWN :				iSelectedIndex += 8;				if ( iSelectedIndex > elPaletteEntries.size( ) )				{					iSelectedIndex = elPaletteEntries.size( ) - 1;				}				scrollToView( iSelectedIndex );				sb.setSelection( sb.getMaximum( )						* ( iSelectedIndex + 1 )						/ elPaletteEntries.size( ) );				coPaletteEntries.redraw( );				break;			case SWT.PAGE_UP :				iSelectedIndex -= 8;				if ( iSelectedIndex < 0 )				{					iSelectedIndex = 0;				}				scrollToView( iSelectedIndex );				sb.setSelection( sb.getMaximum( )						* iSelectedIndex						/ elPaletteEntries.size( ) );				coPaletteEntries.redraw( );				break;			case SWT.TAB :				btnAdd.setFocus( );				break;			case SWT.ESC :				this.getShell( ).close( );				break;		}	}