Added Checkstyle to build process and fixing checkstyle to all com.src.jpexs classes

This commit is contained in:
Jindra Petřík
2023-10-16 09:36:06 +02:00
parent b6e8ca0d67
commit dc5e50813f
789 changed files with 23773 additions and 22843 deletions
@@ -128,7 +128,6 @@ public class GotoAddressDialog extends AppDialog {
setVisible(false);
}
public Long showDialog() {
setVisible(true);
if (okPressed) {
@@ -313,16 +313,7 @@ public class HexView extends JTable {
selectionStart = -1;
selectionEnd = -1;
getModel().fireTableDataChanged();
}
public void scrollToByte(long byteNum) {
int row = (int) (byteNum / bytesInRow);
//final int pageSize = (int) (getParent().getSize().getHeight() / getRowHeight());
getSelectionModel().setSelectionInterval(row, row);
scrollRectToVisible(new Rectangle(getCellRect(row, 0, true)));
}
}
private int getIdxByColAndRow(int row, int col) {
int idx = -1;
@@ -347,6 +338,15 @@ public class HexView extends JTable {
return idx;
}
public void scrollToByte(long byteNum) {
int row = (int) (byteNum / bytesInRow);
//final int pageSize = (int) (getParent().getSize().getHeight() / getRowHeight());
getSelectionModel().setSelectionInterval(row, row);
scrollRectToVisible(new Rectangle(getCellRect(row, 0, true)));
}
public void scrollToByte(long[] byteNumStarts, long[] byteNumEnds) {
for (int i = 0; i < byteNumStarts.length; i++) {
scrollToByte(byteNumStarts[i]);