[vcs-log] remove focused border, prohibit column selection
authorJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Thu, 27 Oct 2016 15:19:28 +0000 (18:19 +0300)
committerJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Thu, 27 Oct 2016 15:19:37 +0000 (18:19 +0300)
platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/VcsLogGraphTable.java
platform/vcs-log/impl/src/com/intellij/vcs/log/ui/render/GraphCommitCellRenderer.java

index fc3105a813cb93a9e674ecbd06d262a39b057f15..393b9bd0d8892bbebac747b1865fea104dcfa778 100644 (file)
@@ -128,6 +128,7 @@ public class VcsLogGraphTable extends TableWithProgress implements DataProvider,
     myController = new GraphTableController(this, ui, logData, graphCellPainter, myGraphCommitCellRenderer);
 
     getSelectionModel().addListSelectionListener(new MyListSelectionListener());
+    getColumnModel().setColumnSelectionAllowed(false);
 
     PopupHandler.installPopupHandler(this, VcsLogActionPlaces.POPUP_ACTION_GROUP, VcsLogActionPlaces.VCS_LOG_TABLE_PLACE);
     ScrollingUtil.installActions(this, false);
@@ -656,6 +657,7 @@ public class VcsLogGraphTable extends TableWithProgress implements DataProvider,
   private class StringCellRenderer extends ColoredTableCellRenderer {
     @Override
     protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {
+      setBorder(null);
       if (value == null) {
         return;
       }
index ca4dfe8663cdd48b7e1f000eeaf3a7b74f274430..cd7c3d61cd8f204544de5fcebb0866514093b434 100644 (file)
@@ -168,9 +168,10 @@ public class GraphCommitCellRenderer extends TypeSafeTableCellRenderer<GraphComm
 
     public void customize(@NotNull GraphCommitCell cell, boolean isSelected, boolean hasFocus, int row, int column) {
       clear();
-      setPaintFocusBorder(hasFocus && myGraphTable.getCellSelectionEnabled());
+      setPaintFocusBorder(false);
       acquireState(myGraphTable, isSelected, hasFocus, row, column);
       getCellState().updateRenderer(this);
+      setBorder(null);
 
       myGraphImage = getGraphImage(cell.getPrintElements());