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

Revise maintable #452

Merged
merged 27 commits into from
Dec 15, 2015
Merged

Revise maintable #452

merged 27 commits into from
Dec 15, 2015

Conversation

matthiasgeiger
Copy link
Member

Complete check and rewrite of MainTable and related classes

This will fix and implement:

@simonharrer
Copy link
Contributor

Awesome.

@matthiasgeiger
Copy link
Member Author

Before I invest much time to fix it...

@JabRef/developers Are we dropping support for the "PDF/PS" column in the main table?

In this column potential contents of the "legacy fields" pdf and ps are shown...
In #251 the legacy tools are already dropped...
And we already have the abilility to define special columns based on a filetype (e.g. show a column for Excel files) - so it would be possible to show specific columns for PDFs (stored in the file field).

@simonharrer
Copy link
Contributor

Yes, support has been dropped for pdf/ps fields all over the place, we should do this as well for the main table.

@koppor
Copy link
Member

koppor commented Dec 5, 2015

👍 for removing these legacy columns.

Could someone create a FAQ entry (in htdocs) or send me a plain FAQ on how to mimic that behavior with the "special columns"?

@simonharrer
Copy link
Contributor

Very nice PR. With this, we already have a 3.1 :)

@matthiasgeiger
Copy link
Member Author

@koppor:

Q: The 'PDF/PS' column in the main table is missing - how can I restore them?
A: As the BibTeX fields pdf and ps are migrated to file the table column was obsolete. However, it is possible to define columns specifically for each file type in the preferences. (See: Preferences -> Entry Table Columns -> Show extra columns)
show-extra

@simonharrer Mhmm... but this gui stuff is quite unnerving 😉

@lenhard
Copy link
Member

lenhard commented Dec 11, 2015

And we already have issues with the pdf/ps columns, which no longer seem to work correctly: #498
This confirms the need for their removal.

} else if (i == URL_COL) {
comparators.add(new IconComparator(new String[]{"url"}));
comparators.add(new IconComparator(Arrays.asList("url")));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use Collections.singletonList instead.

@matthiasgeiger
Copy link
Member Author

Just rebased - from my point of view the current state is good enough to be merged into master.

@matthiasgeiger matthiasgeiger added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Dec 14, 2015
@matthiasgeiger matthiasgeiger changed the title [WIP] Revise maintable Revise maintable Dec 14, 2015
this.bibtexFields = Collections.emptyList();
this.isIconColumn = false;
this.iconLabel = null;
this.database = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea: use optional instead to avoid null checks.

@simonharrer
Copy link
Contributor

👍

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.

Open pdf file when clicking pdf icon
4 participants