From c1679ce1b94d5636212840f5257a3bbd8af48697 Mon Sep 17 00:00:00 2001 From: kasemir Date: Wed, 3 Sep 2025 13:46:30 -0400 Subject: [PATCH 1/2] Probe: Show description --- .../src/main/java/org/phoebus/applications/probe/Messages.java | 1 + .../org/phoebus/applications/probe/view/ProbeController.java | 1 + .../resources/org/phoebus/applications/probe/messages.properties | 1 + .../org/phoebus/applications/probe/messages_fr.properties | 1 + 4 files changed, 4 insertions(+) diff --git a/app/probe/src/main/java/org/phoebus/applications/probe/Messages.java b/app/probe/src/main/java/org/phoebus/applications/probe/Messages.java index b546b5ef1e..51d7ef3272 100644 --- a/app/probe/src/main/java/org/phoebus/applications/probe/Messages.java +++ b/app/probe/src/main/java/org/phoebus/applications/probe/Messages.java @@ -23,6 +23,7 @@ public class Messages public static String ControlRange; public static String Copy; public static String CopyWithValue; + public static String Description; public static String DisplayRange; public static String EnumLbls; public static String Format; diff --git a/app/probe/src/main/java/org/phoebus/applications/probe/view/ProbeController.java b/app/probe/src/main/java/org/phoebus/applications/probe/view/ProbeController.java index 69984304f4..54ff28f4cf 100644 --- a/app/probe/src/main/java/org/phoebus/applications/probe/view/ProbeController.java +++ b/app/probe/src/main/java/org/phoebus/applications/probe/view/ProbeController.java @@ -345,6 +345,7 @@ private void setMetadata(final VType value) else if (value instanceof VNumber) { final Display dis = ((VNumber) value).getDisplay(); + buf.append(Messages.Description).append(dis.getDescription()).append("\n"); buf.append(Messages.Units).append(dis.getUnit()).append("\n"); buf.append(Messages.Format).append(dis.getFormat().format(0.123456789)).append("\n"); buf.append(Messages.DisplayRange).append(dis.getDisplayRange().getMinimum()).append(" .. ").append(dis.getDisplayRange().getMaximum()).append("\n"); diff --git a/app/probe/src/main/resources/org/phoebus/applications/probe/messages.properties b/app/probe/src/main/resources/org/phoebus/applications/probe/messages.properties index d304742ce3..a2238bce67 100644 --- a/app/probe/src/main/resources/org/phoebus/applications/probe/messages.properties +++ b/app/probe/src/main/resources/org/phoebus/applications/probe/messages.properties @@ -3,6 +3,7 @@ Alarms=Alarms: ControlRange=Control Range: Copy=Copy PV to Clipboard CopyWithValue=Copy PV to Clipboard with Value +Description=Description: DisplayRange=Display Range: EnumLbls=Enumeration Labels: Format=Format: diff --git a/app/probe/src/main/resources/org/phoebus/applications/probe/messages_fr.properties b/app/probe/src/main/resources/org/phoebus/applications/probe/messages_fr.properties index 484e3c7b02..5d898c4fff 100644 --- a/app/probe/src/main/resources/org/phoebus/applications/probe/messages_fr.properties +++ b/app/probe/src/main/resources/org/phoebus/applications/probe/messages_fr.properties @@ -3,6 +3,7 @@ Alarms=Alarmes : ControlRange=Plage de contr\u00F4le : Copy=Copier le PV dans le presse-papiers CopyWithValue=Copier la valeur du PV dans le presse-papiers +Description=Description: DisplayRange=Plage d\u0027affichage : EnumLbls=\u00C9tiquettes d\u0027\u00E9num\u00E9ration : Format=Format : From c60dd05aa98405ae037118fdb35f5128a109d56b Mon Sep 17 00:00:00 2001 From: kasemir Date: Thu, 4 Sep 2025 09:22:25 -0400 Subject: [PATCH 2/2] Space --- .../org/phoebus/applications/probe/messages.properties | 2 +- .../org/phoebus/applications/probe/messages_fr.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/probe/src/main/resources/org/phoebus/applications/probe/messages.properties b/app/probe/src/main/resources/org/phoebus/applications/probe/messages.properties index a2238bce67..966b1d4bd1 100644 --- a/app/probe/src/main/resources/org/phoebus/applications/probe/messages.properties +++ b/app/probe/src/main/resources/org/phoebus/applications/probe/messages.properties @@ -3,7 +3,7 @@ Alarms=Alarms: ControlRange=Control Range: Copy=Copy PV to Clipboard CopyWithValue=Copy PV to Clipboard with Value -Description=Description: +Description=Description: DisplayRange=Display Range: EnumLbls=Enumeration Labels: Format=Format: diff --git a/app/probe/src/main/resources/org/phoebus/applications/probe/messages_fr.properties b/app/probe/src/main/resources/org/phoebus/applications/probe/messages_fr.properties index 5d898c4fff..f656e57d24 100644 --- a/app/probe/src/main/resources/org/phoebus/applications/probe/messages_fr.properties +++ b/app/probe/src/main/resources/org/phoebus/applications/probe/messages_fr.properties @@ -3,7 +3,7 @@ Alarms=Alarmes : ControlRange=Plage de contr\u00F4le : Copy=Copier le PV dans le presse-papiers CopyWithValue=Copier la valeur du PV dans le presse-papiers -Description=Description: +Description=Description: DisplayRange=Plage d\u0027affichage : EnumLbls=\u00C9tiquettes d\u0027\u00E9num\u00E9ration : Format=Format :