Skip to content

Commit

Permalink
removed "where" label tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisser committed Mar 15, 2024
1 parent 7938847 commit 8be2d44
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/main/gui/net/sf/jailer/ui/databrowser/BrowserContentPane.java
Expand Up @@ -625,7 +625,6 @@ public void run() {
setPendingState(false, true);
onContentChange(rows, true); // rows.isEmpty() || currentHash != prevHash || rows.size() != prevSize || !prevIDs.equals(currentIDs) || rows.size() != currentIDs.size());
updateMode("table", null);
updateWhereField();
if (BrowserContentPane.this.association == null && (andCond == null || andCond.trim().isEmpty())) {
updateERCounts(table, limitExceeded, rows.size());
}
Expand Down Expand Up @@ -2813,7 +2812,6 @@ private void adjustGui() {
join.setText(this.dataModel.getDisplayName(this.association.source));
on.setText(!this.association.reversed ? SqlUtil.reversRestrictionCondition(this.association.getUnrestrictedJoinCondition()) : this.association
.getUnrestrictedJoinCondition());
updateWhereField();
join.setToolTipText(join.getText());
on.setToolTipText(assocToolTip(on.getText(), this.association));
}
Expand Down Expand Up @@ -7640,36 +7638,6 @@ public void windowClosed(WindowEvent e) {
d.setVisible(true);
}

private void updateWhereField() {
if (association != null) {
if (parentRows != null && parentRows.size() > 0) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < parentRows.size(); ++i) {
if (i > 0) {
sb.append(" or\n");
}
sb.append(parentRows.get(i).rowId);
if (i > 50) {
sb.append("\n...");
break;
}
}
String currentCond = getAndConditionText().trim();
String toolTip;
if (currentCond.length() > 0) {
toolTip = currentCond + "\nand (\n" + sb + ")";
} else {
toolTip = sb.toString();
}
whereLabel.setToolTipText(UIUtil.toHTML(toolTip, 0));
} else {
whereLabel.setToolTipText(null);
}
} else {
whereLabel.setToolTipText(null);
}
}

public void convertToRoot() {
association = null;
parentRows = null;
Expand Down

0 comments on commit 8be2d44

Please sign in to comment.