@@ -0,0 +1,2327 @@
+/*%0A * Copyright 2000-2014 JetBrains s.r.o.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.intellij.util.ui.table;%0A%0Aimport com.intellij.openapi.Disposable;%0Aimport com.intellij.openapi.editor.markup.TextAttributes;%0Aimport com.intellij.openapi.project.Project;%0Aimport com.intellij.ui.EditorTextFieldCellRenderer;%0Aimport org.jetbrains.annotations.NotNull;%0Aimport org.jetbrains.annotations.Nullable;%0A%0Aimport javax.swing.*;%0Aimport java.awt.*;%0A%0Apublic abstract class EditorTextFieldJBTableRowRenderer extends EditorTextFieldCellRenderer implements JBTableRowRenderer %7B%0A  protected EditorTextFieldJBTableRowRenderer(@Nullable Project project, @NotNull Disposable parent) %7B%0A    super(project, parent);%0A  %7D%0A%0A  @Override%0A  public final JComponent getRowRendererComponent(JTable table, int row, boolean selected, boolean focused) %7B%0A    return (JComponent)getTableCellRendererComponent(table, null, selected, focused, row, 0);%0A  %7D%0A%0A  @Override%0A  protected final String getText(JTable table, Object value, int row, int column) %7B%0A    return getText(table, row);%0A  %7D%0A%0A  @Override%0A  protected final Color getCellBackground(JTable table, Object value, boolean selected, boolean focused, int row, int column) %7B%0A    return getRowBackground(table, selected, focused, row);%0A  %7D%0A%0A  @Nullable%0A  @Override%0A  protected final TextAttributes getTextAttributes(JTable table, Object value, boolean selected, boolean focused, int row, int col) %7B%0A    return getTextAttributes(table, row);%0A  %7D%0A%0A  protected abstract String getText(JTable table, int row);%0A%0A  @Nullable%0A  protected TextAttributes getTextAttributes(JTable table, int row) %7B%0A    return null;%0A  %7D%0A%0A  protected Color getRowBackground(JTable table, boolean selected, boolean focused, int row) %7B%0A    return super.getCellBackground(table, null, selected, focused, row, 0);%0A  %7D%0A%7D%0A

introduce EditorTextFieldJBTableRowRenderer