From f6c889b881e2046cdc35b9821f8013b71932963b Mon Sep 17 00:00:00 2001 From: Oliver-Loeffler Date: Tue, 24 Sep 2024 14:53:06 +0200 Subject: [PATCH] Checkstyle fix. --- .../app/DocumentWindowController.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java b/app/src/main/java/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java index 997b66e34..3a802935d 100644 --- a/app/src/main/java/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java +++ b/app/src/main/java/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java @@ -1473,7 +1473,7 @@ void onLibraryRevealCustomFolder(ActionEvent event) { File libraryPath = Paths.get(userLibraryPath).normalize().toFile(); try { EditorPlatform.revealInFileBrowser(libraryPath); - } catch(Exception revealError) { + } catch (Exception revealError) { handleRevealFolderException(revealError, String.valueOf(libraryPath)); } } @@ -2185,29 +2185,29 @@ ActionStatus performCloseAction() { return closeConfirmed ? ActionStatus.DONE : ActionStatus.CANCELLED; } - private void performRevealAction() { assert editorController.getFxomDocument() != null; assert editorController.getFxomDocument().getLocation() != null; - + final URL location = editorController.getFxomDocument().getLocation(); - + File fxmlFile = null; try { - /* Using Path.normalize().toAbsolutePath() ensures that forward and backward slashes are not mixed and - * the path matches the platform requirements. It also ensures, that the file:/ prefix is removed from - * paths and users can directly use the path in their attempt to investigate the error. + /* + * Using Path.normalize().toAbsolutePath() ensures that forward and backward slashes are not mixed + * and the path matches the platform requirements. It also ensures, that the file:/ prefix is + * removed from paths and users can directly use the path in their attempt to investigate the error. */ fxmlFile = Path.of(location.toURI()).normalize().toAbsolutePath().toFile(); } catch (URISyntaxException e) { handleRevealResourceException(e, String.valueOf(location)); } - + try { EditorPlatform.revealInFileBrowser(fxmlFile); - } catch(FileBrowserRevealException re) { + } catch (FileBrowserRevealException re) { handleRevealFileException(re, String.valueOf(fxmlFile)); - } catch(IOException x) { + } catch (IOException x) { handleRevealResourceException(x, String.valueOf(fxmlFile)); } }