Skip to content

Commit

Permalink
Show dialog when copy files did not found file (#3826)
Browse files Browse the repository at this point in the history
Follow up from #3818
# Conflicts:
#	src/main/java/org/jabref/gui/actions/CopyFilesAction.java
#	src/main/resources/l10n/JabRef_en.properties
  • Loading branch information
Siedlerchr committed Mar 11, 2018
1 parent d31f2d8 commit d448548
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/jabref/gui/actions/CopyFilesAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ private void startServiceAndshowProgessDialog(Task<List<CopyFilesResultItemViewM
}

private void showDialog(List<CopyFilesResultItemViewModel> data) {
if (data.isEmpty()) {
dialogService.showInformationDialogAndWait(Localization.lang("Copy linked files to folder..."), Localization.lang("No linked files found for export."));
return;
}
CopyFilesDialogView dlg = new CopyFilesDialogView(databaseContext, new CopyFilesResultListDependency(data));
dlg.show();
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2325,6 +2325,7 @@ empty\ BibTeX\ key=empty BibTeX key
Your\ Java\ Runtime\ Environment\ is\ located\ at\ %0.=Your Java Runtime Environment is located at %0.
Aux\ file=Aux file
Group\ containing\ entries\ cited\ in\ a\ given\ TeX\ file=Group containing entries cited in a given TeX file
Delete\ Entry=Delete Entry
Import\ &\ Export=Import & Export
Look\ up\ document\ identifier=Look up document identifier
Expand All @@ -2351,3 +2352,7 @@ Error\ pushing\ entries=Error pushing entries
Undefined\ character\ format=Undefined character format
Undefined\ paragraph\ format=Undefined paragraph format
Any\ file=Any file
No\ linked\ files\ found\ for\ export.=No linked files found for export.

0 comments on commit d448548

Please sign in to comment.