private void handleHoverListSelection() { int i= fHoverTable.getSelectionIndex(); if (i == -1) { if (fHoverTable.getSelectionCount() == 0) fModifierEditor.setEnabled(false); return; } boolean enabled= fHoverConfigs[i].fIsEnabled; fModifierEditor.setEnabled(enabled); fModifierEditor.setText(fHoverConfigs[i].fModifierString); String description= getContributedHovers()[i].getDescription(); if (description == null) description= ""; //$NON-NLS-1$ fDescription.setText(description); }
private void handleHoverListSelection() { int i= fHoverTable.getSelectionIndex(); if (i == -1) { if (fHoverTable.getSelectionCount() == 0) fModifierEditor.setEnabled(false); return; } boolean enabled= fHoverConfigs[i].fIsEnabled; fModifierEditor.setEnabled(enabled); fModifierEditor.setText(fHoverConfigs[i].fModifierString); String description= getContributedHovers()[i].getDescription(); if (description == null) description= ""; //$NON-NLS-1$ fDescription.setText(description); }
private void handleHoverListSelection() { int i= fHoverTable.getSelectionIndex(); if (i == -1) { if (fHoverTable.getSelectionCount() == 0) fModifierEditor.setEnabled(false); return; } boolean enabled= fHoverConfigs[i].fIsEnabled; fModifierEditor.setEnabled(enabled); fModifierEditor.setText(fHoverConfigs[i].fModifierString); String description= getContributedHovers()[i].getDescription(); if (description == null) description= ""; //$NON-NLS-1$ fDescription.setText(description); }