Skip to content

Improve column preference migration#5670

Merged
tobiasdiez merged 1 commit into
masterfrom
fixSpecialColmn
Nov 27, 2019
Merged

Improve column preference migration#5670
tobiasdiez merged 1 commit into
masterfrom
fixSpecialColmn

Conversation

@tobiasdiez

Copy link
Copy Markdown
Member

Fixes #5661.

  • Change in CHANGELOG.md described (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for bigger UI changes)
  • Checked documentation: Is the information available and up to date? If not: Issue created at https://github.com/JabRef/user-documentation/issues.

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

this(type, "", width);
}

public MainTableColumnModel(Type type) {

Copy link
Copy Markdown
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