}
}
protected void initCellEditor() {
// update text
StickyNoteFigure stickyNote = (StickyNoteFigure)getEditPart().getFigure();
getCellEditor().setValue(stickyNote.getText());
// update font
ZoomManager zoomMgr = (ZoomManager)getEditPart().getViewer()
.getProperty(ZoomManager.class.toString());
if (zoomMgr != null) {
// this will force the font to be set
cachedZoom = -1.0;
updateScaledFont(zoomMgr.getZoom());
zoomMgr.addZoomListener(zoomListener);
} else
getCellEditor().getControl().setFont(stickyNote.getFont());
// Hook the cell editor's copy/paste actions to the actionBars so that they can
// be invoked via keyboard shortcuts.
actionBars = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.getActiveEditor().getEditorSite().getActionBars();