-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve column preference migration #5670
Conversation
private final DoubleProperty widthProperty = new SimpleDoubleProperty(ColumnPreferences.DEFAULT_WIDTH); | ||
private final ObjectProperty<Type> typeProperty; | ||
private final StringProperty qualifierProperty; | ||
private final DoubleProperty widthProperty; | ||
|
||
/** | ||
* This is used by the preferences dialog, to initialize available columns the user can add to the table. | ||
* | ||
* @param type the {@code MainTableColumnModel.Type} of the column, e.g. "NORMALFIELD" or "GROUPS" | ||
* @param qualifier the stored qualifier of the column, e.g. "author/editor" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a @param
description for the width
, too?
widthProperty = new SimpleDoubleProperty(width); | ||
} | ||
|
||
public MainTableColumnModel(Type type, String qualifier) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you copy the old JavaDoc to here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any value in copying the java doc, especially since this is a stupid constructor that does the obvious thing ;-)
} | ||
|
||
public MainTableColumnModel(Type type, double width) { | ||
this(type, "", width); | ||
} | ||
|
||
public MainTableColumnModel(Type type) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you copy the old JavaDoc to here and remove the qualifier
parameter?
Fixes #5661.