1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Adding right-click PV option |
From: | "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, William F Badgett Jr <badgett at fnal.gov> |
Date: | Tue, 11 Apr 2023 13:02:50 +0000 |
We use the 'service provider interface' mechanism,
https://docs.oracle.com/javase/tutorial/ext/basics/spi.html
The specific interface is org.phoebus.ui.spi.ContextMenuEntry,
https://github.com/ControlSystemStudio/phoebus/blob/master/core/ui/src/main/java/org/phoebus/ui/spi/ContextMenuEntry.java
For an example, see "probe"
-Kay
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of William F Badgett Jr via Tech-talk <tech-talk at aps.anl.gov>
Sent: Monday, April 10, 2023 4:44 PM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: [EXTERNAL] Adding right-click PV option
Thinking about my recent post, a different spin: How does one add an option to the list of options that appear when you right-click on a PV entry? Poking around the Java code, it is far from clear to me where this would go.
thanks
William Badgett
Accelerator Division Controls
Neutrino Division Operations
Fermi National Accelerator Lab
Kirk and Wilson Roads
BTE-214 Booster Tower East Room 214
Batavia, IL 60510 U.S.A.
badgett at fnal.gov
|