Provides rules on how create labels. The user friendly name that identifies the rule. For instance used in error messages. The matching expression for enabling this visualizer. Matching expressions are evaluated by expanding all variables and then matching the regular expression on the right of the equals sign with the string gathered from the connection descriptor on the left. Example: {PID}{Name} = {ThisPID}.*org.eclipse.equinox.launcher_.* Would match if the class name appended to the pid would match the regular expression starting with the PID of the process running MissionControl then following by something containing the string .*org.eclipse.equinox.launcher_.*. In other words, it would match if we were connected to ourselves AND running Eclipse. These are well known variables: Name Comment Example ThisPID Contains the PID of the JVM currently running Mission Control 4711 PID Contains the PID of the JVM represented by the connection descriptor. 4712 JDK Contains the JDK level. 1.5 Name The name of the class running in the JVM. org.openjdk.jmc.rcp.start.MCMain The formatting expression deciding how to visualize the name of the ConnectionDescriptor. The same variables as the ones in the matching expression can be used. Example: This Mission Control ({PID}) The expression above would print This Mission Control followed by the PID, for example "This Mission Control (3412)". The priority decides in what order the rules are applied. The higher the value, the higher the priority. The default value is 500. The default catch-it-all-rule will have a priority of 0. Optional icon resource to use when visualizing the connection descriptor. 5.2.0 <extension point="org.openjdk.jmc.ui.descriptor.visualizer"> <visualizer name="JMC in Eclipse" format="{StrDebug}{StrJVMType} The JVM Running Mission Control" icon="appicons/Eclipse.png" match="{PID}{Name}={ThisPID}.*org.eclipse.equinox.launcher_.*" priority="910"> </visualizer> </extension> Implementation note: should we ever grow beyond the capabilities of this, we can always add an optional class attribute taking an interface IConnectionDescriptorVisualizer { boolean match(IConnectionDescriptor); String format(IConnectionDescriptor); Image getIcon(); } To which all the important decisions are delegated. Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.