From e539fb890412cd6136132b4dd04f672234f34cd0 Mon Sep 17 00:00:00 2001 From: Wim Jongman Date: Wed, 27 Nov 2024 17:57:54 +0100 Subject: [PATCH] Update TitledSeparatorSnippet.java --- .../opal/titledseparator/snippets/TitledSeparatorSnippet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/opal/titledseparator/org.eclipse.nebula.widgets.opal.titledseparator.snippets/src/org/eclipse/nebula/widgets/opal/titledseparator/snippets/TitledSeparatorSnippet.java b/widgets/opal/titledseparator/org.eclipse.nebula.widgets.opal.titledseparator.snippets/src/org/eclipse/nebula/widgets/opal/titledseparator/snippets/TitledSeparatorSnippet.java index daae6706..57bbf470 100644 --- a/widgets/opal/titledseparator/org.eclipse.nebula.widgets.opal.titledseparator.snippets/src/org/eclipse/nebula/widgets/opal/titledseparator/snippets/TitledSeparatorSnippet.java +++ b/widgets/opal/titledseparator/org.eclipse.nebula.widgets.opal.titledseparator.snippets/src/org/eclipse/nebula/widgets/opal/titledseparator/snippets/TitledSeparatorSnippet.java @@ -57,8 +57,8 @@ public static void main(final String[] args) { final Shell shell = new Shell(display); shell.setLayout(new GridLayout(1, false)); - byte[] imageBytes = Base64.getDecoder().decode(IMAGE); - final Image icon = new Image(display, new ByteArrayInputStream(imageBytes)); + final byte[] imageBytes = Base64.getDecoder().decode(IMAGE); + final Image icon = new Image(display, new ByteArrayInputStream(imageBytes)); final Font font = new Font(display, "Courier New", 18, SWT.BOLD | SWT.ITALIC); // Default separator (no image, title aligned on the left)