[vcs-log] minor: rename UI -> ui, myUI -> myUi

This commit is contained in:
Julia Beliaeva
2016-02-16 20:04:50 +03:00
parent eb6aee1e8b
commit ff1f842740
3 changed files with 17 additions and 17 deletions
@@ -35,20 +35,20 @@ public class BranchesPanel extends JPanel {
private static final int TOP = 2;
private static final int BOTTOM = 3;
@NotNull private final VcsLogDataHolder myDataHolder;
@NotNull private final VcsLogUiImpl myUI;
@NotNull private final VcsLogUiImpl myUi;
@NotNull private final VcsRefPainter myReferencePainter;
@NotNull private LinkedHashMap<VirtualFile, List<RefGroup>> myRefGroups;
@Nullable private Collection<VirtualFile> myRoots = null;
public BranchesPanel(@NotNull VcsLogDataHolder dataHolder, @NotNull VcsLogUiImpl UI, @NotNull RefsModel initialRefsModel) {
public BranchesPanel(@NotNull VcsLogDataHolder dataHolder, @NotNull VcsLogUiImpl ui, @NotNull RefsModel initialRefsModel) {
super(new FlowLayout(FlowLayout.LEADING, BIG_ROOTS_GAP - 2 * SMALL_ROOTS_GAP, 0));
setBorder(new EmptyBorder(TOP, SMALL_ROOTS_GAP, BOTTOM, SMALL_ROOTS_GAP));
myDataHolder = dataHolder;
myUI = UI;
myUi = ui;
myRefGroups = getRefsToDisplayOnPanel(initialRefsModel);
myReferencePainter = new VcsRefPainter(myUI.getColorManager(), true);
myReferencePainter = new VcsRefPainter(myUi.getColorManager(), true);
recreateComponents();
}
@@ -129,7 +129,7 @@ public class BranchesPanel extends JPanel {
myGroups = groups;
for (RefGroup group : myGroups) {
add(new ReferenceGroupComponent(group, myReferencePainter, myUI, root));
add(new ReferenceGroupComponent(group, myReferencePainter, myUi, root));
}
}
}
@@ -83,7 +83,7 @@ public class VcsLogGraphTable extends JBTable implements DataProvider, CopyProvi
private static final int MAX_ROWS_TO_CALC_WIDTH = 1000;
private static final int MAX_ROWS_TO_CALC_OFFSET = 100;
@NotNull private final VcsLogUiImpl myUI;
@NotNull private final VcsLogUiImpl myUi;
private final VcsLogDataHolder myLogDataHolder;
private final MyDummyTableCellEditor myDummyEditor = new MyDummyTableCellEditor();
@NotNull private final TableCellRenderer myDummyRenderer = new DefaultTableCellRenderer();
@@ -104,13 +104,13 @@ public class VcsLogGraphTable extends JBTable implements DataProvider, CopyProvi
}
};
public VcsLogGraphTable(@NotNull VcsLogUiImpl UI, @NotNull final VcsLogDataHolder logDataHolder, @NotNull VisiblePack initialDataPack) {
public VcsLogGraphTable(@NotNull VcsLogUiImpl ui, @NotNull final VcsLogDataHolder logDataHolder, @NotNull VisiblePack initialDataPack) {
super();
myUI = UI;
myUi = ui;
myLogDataHolder = logDataHolder;
myGraphCommitCellRenderer = new GraphCommitCellRender(logDataHolder, myGraphCellPainter, this);
setDefaultRenderer(VirtualFile.class, new RootCellRenderer(myUI));
setDefaultRenderer(VirtualFile.class, new RootCellRenderer(myUi));
setDefaultRenderer(GraphCommitCell.class, myGraphCommitCellRenderer);
setDefaultRenderer(String.class, new StringCellRenderer());
@@ -125,7 +125,7 @@ public class VcsLogGraphTable extends JBTable implements DataProvider, CopyProvi
PopupHandler.installPopupHandler(this, VcsLogActionPlaces.POPUP_ACTION_GROUP, VcsLogActionPlaces.VCS_LOG_TABLE_PLACE);
ScrollingUtil.installActions(this, false);
GraphTableModel model = new GraphTableModel(initialDataPack, myLogDataHolder, myUI);
GraphTableModel model = new GraphTableModel(initialDataPack, myLogDataHolder, myUi);
setModel(model);
initColumnSize();
}
@@ -193,10 +193,10 @@ public class VcsLogGraphTable extends JBTable implements DataProvider, CopyProvi
private void setRootColumnSize(TableColumn column) {
int rootWidth;
if (!myUI.isMultipleRoots()) {
if (!myUi.isMultipleRoots()) {
rootWidth = 0;
}
else if (!myUI.isShowRootNames()) {
else if (!myUi.isShowRootNames()) {
rootWidth = ROOT_INDICATOR_WIDTH;
}
else {
@@ -231,7 +231,7 @@ public class VcsLogGraphTable extends JBTable implements DataProvider, CopyProvi
return "<html><b>" +
((VirtualFile)at).getPresentableUrl() +
"</b><br/>Click to " +
(myUI.isShowRootNames() ? "collapse" : "expand") +
(myUi.isShowRootNames() ? "collapse" : "expand") +
"</html>";
}
}
@@ -363,7 +363,7 @@ public class VcsLogGraphTable extends JBTable implements DataProvider, CopyProvi
private boolean expandOrCollapseRoots(@NotNull MouseEvent e) {
TableColumn column = getRootColumnOrNull(e);
if (column != null) {
myUI.setShowRootNames(!myUI.isShowRootNames());
myUi.setShowRootNames(!myUi.isShowRootNames());
return true;
}
return false;
@@ -400,7 +400,7 @@ public class VcsLogGraphTable extends JBTable implements DataProvider, CopyProvi
}
}
myUI.repaintUI(); // in case of repaintUI doing something more than just repainting this table in some distant future
myUi.repaintUI(); // in case of repaintUI doing something more than just repainting this table in some distant future
if (answer == null) {
return;
@@ -45,9 +45,9 @@ public class GraphTableModel extends AbstractTableModel {
private boolean myMoreRequested;
public GraphTableModel(@NotNull VisiblePack dataPack, @NotNull VcsLogDataHolder dataHolder, @NotNull VcsLogUiImpl UI) {
public GraphTableModel(@NotNull VisiblePack dataPack, @NotNull VcsLogDataHolder dataHolder, @NotNull VcsLogUiImpl ui) {
myLogDataHolder = dataHolder;
myUi = UI;
myUi = ui;
myDataPack = dataPack;
myDataHolder = dataHolder;
}