actionBars = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() .getActiveEditor().getEditorSite().getActionBars(); saveCurrentActions(actionBars); actionHandler = new CellEditorActionHandler(actionBars); actionHandler.addCellEditor(getCellEditor()); actionBars.updateActionBars();
	protected void initCellEditor( )	{		Text text = (Text) getCellEditor( ).getControl( );		LabelFigure labelFigure = (LabelFigure) getEditPart( ).getFigure( );		String initialLabelText = ( (LabelHandle) getModel()).getText( );		if ( initialLabelText == null )		{			initialLabelText = ""; //$NON-NLS-1$		}		getCellEditor( ).setValue( initialLabelText );		IFigure figure = getEditPart( ).getFigure( );		scaledFont = figure.getFont( );		FontData data = scaledFont.getFontData( )[0];		Dimension fontSize = new Dimension( 0, data.getHeight( ) );		labelFigure.translateToAbsolute( fontSize );		data.setHeight( fontSize.height );		scaledFont = new Font( null, data );		text.setFont( scaledFont );		text.selectAll( );	}