Skip to content
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

Merged
merged 1 commit into from
Nov 27, 2019
Merged

Improve column preference migration #5670

merged 1 commit into from
Nov 27, 2019

Conversation

tobiasdiez
Copy link
Member

Fixes #5661.

@tobiasdiez tobiasdiez added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Nov 24, 2019
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"
Copy link
Member

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) {
Copy link
Member

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?

Copy link
Member Author

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) {
Copy link
Member

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?

@tobiasdiez tobiasdiez merged commit c59f8c8 into master Nov 27, 2019
@tobiasdiez tobiasdiez deleted the fixSpecialColmn branch November 27, 2019 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Special columns are not displayed correctly
3 participants