Skip to content

Conversation

@nittka
Copy link
Collaborator

@nittka nittka commented Mar 10, 2018

The current implementiation uses the first file found for the pdf annotation. This PR changes that using an existing one.

Here is the border case scenario where this makes sense. The same file (file system location) may be present more than once in the workspace, e.g. within an imported project and within a linked file system folder (via import file system). Hence the findFilesForLocationURI-call may really provide more than one IFile. Currently, the first file wins (even if it is the file in a project, which is currently closed and hence cannot be opened).

@thSoft thSoft merged commit f909a28 into thSoft:master Mar 10, 2018
@thSoft
Copy link
Owner

thSoft commented Mar 10, 2018

Thanks for fixing the logic!

@thSoft thSoft added this to the 0.5.0 milestone Mar 10, 2018
@nittka nittka deleted the linkExistingFile branch March 10, 2018 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants