Skip to content

Commit

Permalink
add toString methods to MainTableColumnModel (#12327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr authored Dec 22, 2024
1 parent c633366 commit 6d8e626
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/org/jabref/gui/maintable/MainTableColumnModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public enum Type {

private final String name;
private final String displayName;

Type(String name) {
this.name = name;
this.displayName = name;
Expand Down Expand Up @@ -79,6 +80,14 @@ public static Type fromString(String text) {
LOGGER.warn("Column type '{}' is unknown.", text);
return NORMALFIELD;
}

@Override
public String toString() {
return "Type{" +
"name='" + name + '\'' +
", displayName='" + displayName + '\'' +
'}';
}
}

private final ObjectProperty<Type> typeProperty = new SimpleObjectProperty<>();
Expand Down Expand Up @@ -220,6 +229,14 @@ public int hashCode() {
return Objects.hash(typeProperty.getValue(), qualifierProperty.getValue());
}

@Override
public String toString() {
return "MainTableColumnModel{" +
"qualifierProperty=" + qualifierProperty +
", typeProperty=" + typeProperty +
'}';
}

/**
* This creates a new {@code MainTableColumnModel} out of a given string
*
Expand Down

0 comments on commit 6d8e626

Please sign in to comment.