From 560db2a3dc6d75956ec328c4f6d810982a7253ed Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Tue, 5 Nov 2024 11:04:01 +0100 Subject: [PATCH] Adjust notification snippets to follow version schema to snippets The JFace snippets have increasing numbers, the notificaiton api examples should follow the same schema. --- docs/JFaceSnippets.md | 12 ++++++------ ...=> Snippet083NotificationPopupWithFunctions.java} | 2 +- ...t084NotificationPopupWithCustomDelayAndFade.java} | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) rename examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/{Snippet002NotificationPopupWithFunctions.java => Snippet083NotificationPopupWithFunctions.java} (94%) rename examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/{Snippet004NotificationPopupWithCustomDelayAndFade.java => Snippet084NotificationPopupWithCustomDelayAndFade.java} (89%) diff --git a/docs/JFaceSnippets.md b/docs/JFaceSnippets.md index e2ad06964a6..47e965b386d 100644 --- a/docs/JFaceSnippets.md +++ b/docs/JFaceSnippets.md @@ -21,8 +21,8 @@ Contents * [1.2 Snippet082 - Color Selector](#Snippet082---Color-Selector) * [2 Notification](#Notification) * [2.1 Snippet081 - Notification API](#Snippet081---Notification-API) - * [2.2 Snippet002 - Notification Popup with Functions](#Snippet002---Notification-Popup-with-Functions) - * [2.3 Snippet004 - Notification Popup with Custom Delay and Fade](#Snippet004---Notification-Popup-with-Custom-Delay-and-Fade) + * [2.2 Snippet083 - Notification Popup with Functions](#Snippet083---Notification-Popup-with-Functions) + * [2.3 Snippet084 - Notification Popup with Custom Delay and Fade](#Snippet084---Notification-Popup-with-Custom-Delay-and-Fade) * [3 Layout](#Layout) * [3.1 Snippet013 - Grid Layout Factory](#Snippet013---Grid-Layout-Factory) * [3.2 Snippet016 - Table Layout](#Snippet016---Table-Layout) @@ -129,15 +129,15 @@ Demonstrates usage of the non-blocking notification API ![Snippet081 Shell1.gif](https://raw.githubusercontent.com/eclipse-platform/eclipse.platform.ui/master/docs/images/Snippet081_Shell1.gif) -### [Snippet002 - Notification Popup with Functions](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/notifications/Snippet002NotificationPopupWithFunctions.java) +### [Snippet083 - Notification Popup with Functions](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/notifications/Snippet083NotificationPopupWithFunctions.java) -* [Snippet002 - Notification Popup with Functions](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/notifications/Snippet002NotificationPopupWithFunctions.java) +* [Snippet083 - Notification Popup with Functions](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/notifications/Snippet083NotificationPopupWithFunctions.java) Demonstrates the creation of notification popups that include function callbacks for user interactions. -### [Snippet004 - Notification Popup with Custom Delay and Fade](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/notifications/Snippet004NotificationPopupWithCustomDelayAndFade.java) +### [Snippet084 - Notification Popup with Custom Delay and Fade](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/notifications/Snippet084NotificationPopupWithCustomDelayAndFade.java) -* [Snippet004 - Notification Popup with Custom Delay and Fade](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/notifications/Snippet004NotificationPopupWithCustomDelayAndFade.java) +* [Snippet084 - Notification Popup with Custom Delay and Fade](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/notifications/Snippet084NotificationPopupWithCustomDelayAndFade.java) Shows how to create notification popups with custom delay and fade effects for enhanced visual feedback. diff --git a/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet002NotificationPopupWithFunctions.java b/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet083NotificationPopupWithFunctions.java similarity index 94% rename from examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet002NotificationPopupWithFunctions.java rename to examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet083NotificationPopupWithFunctions.java index 256848ff6da..df8535ced2f 100644 --- a/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet002NotificationPopupWithFunctions.java +++ b/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet083NotificationPopupWithFunctions.java @@ -10,7 +10,7 @@ import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; -public class Snippet002NotificationPopupWithFunctions { +public class Snippet083NotificationPopupWithFunctions { public static void main(String[] args) { Display display = new Display(); diff --git a/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet004NotificationPopupWithCustomDelayAndFade.java b/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet084NotificationPopupWithCustomDelayAndFade.java similarity index 89% rename from examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet004NotificationPopupWithCustomDelayAndFade.java rename to examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet084NotificationPopupWithCustomDelayAndFade.java index 75d2e621a5d..3db81ad6d37 100644 --- a/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet004NotificationPopupWithCustomDelayAndFade.java +++ b/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/notifications/Snippet084NotificationPopupWithCustomDelayAndFade.java @@ -4,7 +4,7 @@ import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; -public class Snippet004NotificationPopupWithCustomDelayAndFade { +public class Snippet084NotificationPopupWithCustomDelayAndFade { public static void main(String[] args) { Display display = new Display();