From 0b913dcdfd310d3c785cb5d0d41c567b05218511 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Mon, 27 Jun 2011 15:41:47 +0400 Subject: [PATCH] CCE fix --- .../intellij/ide/plugins/InstalledPluginsTableModel.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/plugins/InstalledPluginsTableModel.java b/platform/platform-impl/src/com/intellij/ide/plugins/InstalledPluginsTableModel.java index afac6bc7359a..16caead070d7 100644 --- a/platform/platform-impl/src/com/intellij/ide/plugins/InstalledPluginsTableModel.java +++ b/platform/platform-impl/src/com/intellij/ide/plugins/InstalledPluginsTableModel.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2011 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -339,9 +339,9 @@ public class InstalledPluginsTableModel extends PluginTableModel { final boolean hasFocus, final int row, final int column) { - final JCheckBox checkbox = (JCheckBox) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); - checkbox.setEnabled(false); - return checkbox; + final Component renderer = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); + setEnabled(false); + return renderer; } }; }