public final class PluginExplorerUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.java.plugin.registry.PluginDescriptor |
getDeclaringPluginDescriptor(java.lang.Object[] objectPath)
Searches for a declaring
PluginDescriptor in the given
objectPath . |
static java.lang.Object[] |
getObjectPath(javax.swing.tree.TreePath treePath) |
static org.java.plugin.registry.PluginDescriptor |
getPluginDescriptor(java.lang.Object[] objectPath)
Returns the first occurring
PluginDescriptor in
the given objectPath . |
public static java.lang.Object[] getObjectPath(javax.swing.tree.TreePath treePath)
public static org.java.plugin.registry.PluginDescriptor getPluginDescriptor(java.lang.Object[] objectPath)
PluginDescriptor
in
the given objectPath
. Search is started at the last element.public static org.java.plugin.registry.PluginDescriptor getDeclaringPluginDescriptor(java.lang.Object[] objectPath)
PluginDescriptor
in the given
objectPath
. Works similar as getPluginDescriptor(Object[])
but in the case that no element in the given path happened to be of type
PluginDescriptor
the first PluginElement
encountered
will be used to fetch a valid descriptor.