Skip to content

Commit

Permalink
'#1866: Apply project's code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Sep 10, 2023
1 parent f65a255 commit cbcdfa3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions iped-app/src/main/java/iped/app/ui/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ public void createGUI() {
resultsTable.setShowGrid(false);
resultsTable.setAutoscrolls(false);
((JComponent) resultsTable.getDefaultRenderer(Boolean.class)).setOpaque(true);

InputMap inputMap = resultsTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
inputMap.put(KeyStroke.getKeyStroke("SPACE"), "none"); //$NON-NLS-1$ //$NON-NLS-2$
inputMap.put(KeyStroke.getKeyStroke("ctrl SPACE"), "none"); //$NON-NLS-1$ //$NON-NLS-2$
Expand Down Expand Up @@ -688,11 +688,12 @@ public BasicTitleViewItem<JComponent> create(ActionViewConverter converter,
defaultSelectedColor = dockingControl.getController().getColors()
.get(ColorMap.COLOR_KEY_TAB_BACKGROUND_SELECTED);

timelineButton = new CCheckBox(Messages.get("App.ToggleTimelineView"), IconUtil.getToolbarIcon("time", resPath)) {
timelineButton = new CCheckBox(Messages.get("App.ToggleTimelineView"),
IconUtil.getToolbarIcon("time", resPath)) {
protected void changed() {
if (timelineListener != null)
timelineListener.setTimelineTableView(isSelected());
}
timelineListener.setTimelineTableView(isSelected());
}
};
timelineListener = new TimelineListener(timelineButton, IconUtil.getToolbarIcon("timeon", resPath));

Expand Down Expand Up @@ -776,7 +777,7 @@ private void setupItemTable(HitsTable itemTable) {
itemTable.setDefaultRenderer(String.class, new TableCellRenderer());
itemTable.addKeyListener(new SpaceKeyListener());
}

/**
* Setup application global keyboard shortcuts. TODO update existing keyboard
* shortcut handling code to use this.
Expand Down Expand Up @@ -1394,7 +1395,7 @@ public JTable getResultsTable() {
public TreeListener getTreeListener() {
return treeListener;
}

public void updateIconContainersUI(int size, boolean updateUI) {
updateIconContainerUI(tree, size, updateUI);
updateIconContainerUI(bookmarksTree, size, updateUI);
Expand All @@ -1413,8 +1414,8 @@ private void updateIconContainerUI(JComponent comp, int size, boolean updateUI)
if (comp instanceof JTable && comp != gallery) {
JTable table = (JTable) comp;
table.setRowHeight(size);
// Set bookmark icons column width based on current icon size

// Set bookmark icons column width based on current icon size
for (int i = 0; i < table.getColumnCount(); i++) {
if (table.getColumnName(i).equals(BookmarkIcon.columnName)) {
table.getColumnModel().getColumn(i).setPreferredWidth(size + 2);
Expand Down

0 comments on commit cbcdfa3

Please sign in to comment.