-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
-
None
At the moment the Java processes in the JVM Browser are handled through the labelingrules extension, which either uses pre-determined rules set in org.openjdk.jmc.browser/plugin.xml passed into NameConverter, or it uses JVMDescriptor information formatted against the localized string NameConverter_LOCAL_NAME_TEMPLATE.
It would be nice to be able to have the option to supply a custom format for naming these processes, or allow the user to re-name the processes in the JVM Browser to their liking.
My first instinct would be to have an option in the Preferences where the user could edit/set their own version of NameConverter_LOCAL_NAME_TEMPLATE, and shuffle around the JVMDescriptor information into a string that best suits their needs. If there is not a custom preference for this name template, then NamingConverter could proceed as usual, otherwise this new template would take priority.
For example, currently NameConverter_LOCAL_NAME_TEMPLATE is:
NameConverter_LOCAL_NAME_TEMPLATE= ({0}) {1}
where:
# 0 = Java version.
# 1 = LocalConnectionDescriptor_JVM_TYPE_X if a non jrockit JVM.
# 2 = The commandline (first part)
# 3 = PID
But maybe it'd be more helpful to have the PID first, so the Preferences setting could allow the user to set template like ({3}) ({0}) {1}{2}
instead.
Any thoughts or comments are welcome on this.