/** * Handles a selection change in the entry table. * * @param selection the new selection */ public void handleEntrySelection(ISelection selection) { if (defaultsAction != null) { if (selection.isEmpty()) { defaultsAction.setEnabled(false); return; } // see if item is editable boolean editable = viewer.getActiveCellEditor() != null; defaultsAction.setEnabled(editable); } }
/** * Handles a selection change in the entry table. * * @param selection the new selection */ public void handleEntrySelection(ISelection selection) { if (defaultsAction != null) { if (selection.isEmpty()) { defaultsAction.setEnabled(false); return; } // see if item is editable boolean editable = viewer.getActiveCellEditor() != null; defaultsAction.setEnabled(editable); } }
/** * Handles a selection change in the entry table. * * @param selection the new selection */ public void handleEntrySelection(ISelection selection) { if (defaultsAction != null) { if (selection.isEmpty()) { defaultsAction.setEnabled(false); return; } // see if item is editable boolean editable = viewer.getActiveCellEditor() != null; defaultsAction.setEnabled(editable); } }