239240241242243244245246247248249
WorkbookCtrl bookCtrl = getDesktopWorkbenchContext().getWorkbookCtrl(); Worksheet sheet = bookCtrl.getSelectedSheet(); if (sheet == null) { //no sheet, no operation return; } bookCtrl.reGainFocus(); //TODO: why need it ? //newEdit = null; everFocusCell = false;