1001: Image gallery for muti-user cases

- More Codacy comments addressed.
This commit is contained in:
Raman 2018-07-26 09:09:20 -04:00
parent 9a5461fd6c
commit 36c638514f
2 changed files with 4 additions and 5 deletions

View File

@ -472,8 +472,8 @@ public final class ImageGalleryController {
try { try {
List<DataSource> dataSources = sleuthKitCase.getDataSources(); List<DataSource> dataSources = sleuthKitCase.getDataSources();
dataSources.forEach((ds) -> { dataSources.forEach((dataSource) -> {
db.insertDataSource(ds.getId()); db.insertDataSource(dataSource.getId());
}); });
} }
catch (TskCoreException ex) { catch (TskCoreException ex) {

View File

@ -107,12 +107,11 @@ public final class ImageGalleryTopComponent extends TopComponent implements Expl
/** /**
* Returns the top component window. * Returns the top component window.
* *
* @return Image gallery top component window * @return Image gallery top component window, null if it's not open
*/ */
@ThreadConfined(type = ThreadConfined.ThreadType.JFX) @ThreadConfined(type = ThreadConfined.ThreadType.JFX)
public static TopComponent getTopComponent() { public static TopComponent getTopComponent() {
final TopComponent topComponent = WindowManager.getDefault().findTopComponent(PREFERRED_ID); return WindowManager.getDefault().findTopComponent(PREFERRED_ID);
return topComponent;
} }
public static void openTopComponent() { public static void openTopComponent() {