list.addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(final ListSelectionEvent e) {</BUG>
if (!e.getValueIsAdjusting()) {
<BUG>final boolean isSomethingSelected = list.getSelectedIndex() >= 0;
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
activateAction.setEnabled(isSomethingSelected);
}
});
}</BUG>
}

@Inject
public WikisListPanel(final WikiSubController subController,
final WikiSubPanel subPanel) {
super(new WikiListCellRenderer(), subController, subPanel, subController.getMainController().getWikis(),
"wikis", new ImageIcon(Resources.getResource("comeon/ui/wiki_large.png")), WikiModel.getPrototype());
this.activateAction = new ActivateAction();
list.addListSelectionListener(e -> {
if (!e.getValueIsAdjusting()) {
final boolean isSomethingSelected = list.getSelectedIndex() >= 0;
SwingUtilities.invokeLater(() -> activateAction.setEnabled(isSomethingSelected));
}
