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 focus of the maintable after a sidepane gets closed #1741

Merged
merged 4 commits into from
Aug 17, 2016

Conversation

mairdl
Copy link
Contributor

@mairdl mairdl commented Aug 15, 2016

Follow up of #1525

The minimum quality is achieved: The new system is better then the old one.

Some issues remain, which i try to improve in this PR. Also thanks to @koppor for finding these and even providing a .gif.

Focus of "new database" instead of entry.

Expectation: When I toggle something, the focus after toggling twice should be the same. This is not the case.

  1. Click on first entry
  2. Show web search (alt+4)
  3. Click on first entry
  4. Hide web search (alt+4)
  5. Show web search (alt+4)
  6. Hide web search (alt+4)
  7. "New database" is focused instead of the first entry.

Sometimes, this happens after step 4, but not reproducable.

Position in entry table

(updated)

The position in the entry table changes depended of the selected group.

Expected behavior: When I select the third entry, show the groups interface, hide the groups interface, press cursor up, the entry above the current entry should be shown.

Example:

  1. open complex.bib
  2. Select fourth entry in table
  3. Press cursor down
  4. Show groups interface (alt+3)
  5. Select a group "StaticGroup"
  6. Click on selected entry
  7. Hide groups interface (alt+3)
  8. Press cursor down
  9. Effect: first entry in table is selected.

issue2

Just play around a bit with "complex.bib"

@mairdl mairdl changed the title Improve focus of the maintable after a sidepane gets closed [WIP] Improve focus of the maintable after a sidepane gets closed Aug 15, 2016
@@ -104,6 +104,8 @@ public synchronized void hide(String name) {
LOGGER.warn("Side pane component '" + name + "' unknown.");
} else {
hideComponent(sidePaneComponent);
frame.getCurrentBasePanel().getMainTable().setSelected(frame.getCurrentBasePanel().getMainTable().getSelectedRow());
frame.getCurrentBasePanel().getMainTable().requestFocus();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please extract frame.getCurrentBasePanel().getMainTable() to new local variable.

@boceckts
Copy link
Contributor

Please add a Changelog entry

@mairdl
Copy link
Contributor Author

mairdl commented Aug 15, 2016

I put your feedback into my code.

@@ -12,6 +12,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
## [Unreleased]

### Changed
- Improve focus of the maintable after a sidepane gets closed
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move it to the end of the Fixed section and describe the bug

@tschechlovdev tschechlovdev added status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers and removed stupro-ready-for-internal-review labels Aug 17, 2016
@mairdl mairdl changed the title [WIP] Improve focus of the maintable after a sidepane gets closed Improve focus of the maintable after a sidepane gets closed Aug 17, 2016
@koppor koppor merged commit 143685b into JabRef:master Aug 17, 2016
Siedlerchr added a commit to Siedlerchr/jabref that referenced this pull request Aug 18, 2016
* master:
  Fix imports
  Rename NewFileDialog -> FileDialog
  Also cancel duplicate finder workflow on close button
  Removed/moved preferences which are constants
  implements JabRef#1767: Add Help Button to access new help page
  Fixed BibTeXMLImporter
  Set more default file filters in dialogs JabRef#1763
  Resolve crossrefs and strings in main table (JabRef#1644)
  Rewrite bibtexml importer with JAXB parser (JabRef#1666)
  Moved a few more initialization to GUIGlobals.init() (JabRef#1756)
  Added program to generate a table of all characters and fixed some characters (JabRef#1766)
  Improve focus of the maintable after a sidepane gets closed (JabRef#1741)
  Table row height adjusts on Windows as the font scales with the menu (JabRef#1623)
  Added more characters to converters (JabRef#1761)
ayanai1 pushed a commit to ayanai1/jabref that referenced this pull request Sep 5, 2016
)

* Improve focus of the maintable after a sidepane gets closed

* Create local variable mainTable for better codequality, describe changes in Changelog.md

* Improve changelod message and reposition it

* Repositioning in changelog.md
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.

4 participants