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

Fix problems in source editor #3398

Merged
merged 1 commit into from
Nov 4, 2017
Merged

Fix problems in source editor #3398

merged 1 commit into from
Nov 4, 2017

Conversation

tobiasdiez
Copy link
Member

So here is now a real fix of these problems in the source editor (index out of bounds, paste, select all, update,...). The problem was that updates to the editor were not performed on the javafx thread although they were wraped in a runInJavaFXThread call. The reason was that this method would actually submit tasks to the executor, which would then start a new thread. So the fix only happens in DefaultTaskExecutor, the rest of the changes are minor cosmetic improvements to get rid of globals or base panels in the source tab.

  • Change in CHANGELOG.md described
  • Tests created for changes
  • Screenshots added (for bigger UI changes)
  • Manually tested changed features in running JabRef
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)
  • If you changed the localization: Did you run gradle localizationUpdate?

@tobiasdiez tobiasdiez added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Nov 4, 2017
@tobiasdiez tobiasdiez mentioned this pull request Nov 4, 2017
6 tasks
@Siedlerchr
Copy link
Member

Looks good to be, however I am wondering why the javafx thread check did not work as specified?

@tobiasdiez
Copy link
Member Author

It worked...if the call were made on the javafx thread, then the runnable was send to the executor. However, the executor starts a new thread for each submitted task.

Copy link
Member

@LinusDietz LinusDietz left a comment

Choose a reason for hiding this comment

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

Good Job!

@Siedlerchr
Copy link
Member

I tested it locally and apart from getting any error hint on invalid bibtex (which is simply reverted) it works as expected. So I merge this in now

@Siedlerchr Siedlerchr merged commit 248995f into master Nov 4, 2017
@Siedlerchr Siedlerchr deleted the sourceException branch November 4, 2017 11:08
Siedlerchr added a commit that referenced this pull request Nov 4, 2017
* upstream/master: (26 commits)
  Fix static localized text (#3400)
  Fix problems in source editor (#3398)
  Fix MathSciNet fetcher (#3402)
  Fix NPE when saving new file
  Improve SyncLang.py (#3184)
  Config intellj code style to adhere to empty lines checkstyle rule (#3365)
  Don't list same look and feels more than once (#3393)
  progessdialog and result table are now shown correclty on copy files
  Export pdf/linked files  (#3147)
  Added checking integrity dialog (#3388)
  Update richtext and flowless (#3386)
  Source tab: hide notification pane when code is correct again (#3387)
  Titles are optional at crossref (#3378)
  Update entry for every change in the source panel (#3366)
  Rework AutoSetFileLinks (#3368)
  revert wrongly commited changes
  Refactorings (#3370)
  Fix freezing when running cleanup file operations like rename (#3315)
  This additional style setting for IDEA (#3355)
  Fix checkstyle
  ...

# Conflicts:
#	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.

3 participants