|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.trace.ui.HyadesUtil
public class HyadesUtil
| Field Summary | |
|---|---|
static int |
CONNECTION_CONTROLLER_ERROR
|
static int |
CONNECTION_HOST_ERROR
|
static int |
CONNECTION_PORT_ERROR
|
static int |
CONNECTION_SUCCESS
Test the Agent Controller connection on a host with given port number |
| Constructor Summary | |
|---|---|
HyadesUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
change(java.lang.String in,
java.lang.String oldPat,
java.lang.String newPat)
Changes all occurrences of oldPat to newPat, in the input String and returns the result. |
static void |
cleanupResources(java.lang.String navigatorID)
Cleans up the resources for the given navigatorID |
static java.lang.String |
codeLogAgentName(java.lang.String type,
java.lang.String name,
java.lang.String userInput)
|
static short |
containsMixedResources(TRCAgentProxy[] agentProxies)
Returns a value specifying whether the given log agent proxies contain mixed resources. |
static org.eclipse.hyades.ui.internal.navigator.INavigator |
getActiveNavigator()
Returns the active navigator. |
static java.lang.String |
getAgentLabel(TRCAgentProxy a)
Returns an appropriate label for the given agent. |
static java.lang.String |
getAgentName(TRCAgentProxy agent)
Returns the displayable agent name for the given agent. |
static java.lang.String |
getAgentType(TRCAgentProxy agent)
|
static void |
getAgentType(TRCMonitor monitor,
java.util.Vector agentTypeList)
Will add the list of agent types, under this monitor, to the 'agentTypeList' Vector This method was added as a result of bugzilla 158564 |
static void |
getAgentType(TRCNode node,
java.util.Vector agentTypeList)
Will add the list of agent types, under this node, to the 'agentTypeList' Vector This method was added as a result of bugzilla 158564 |
static void |
getAgentType(TRCProcessProxy process,
java.util.Vector agentTypeList)
Will add the list of agent types, under this process, to the 'agentTypeList' Vector This method was added as a result of bugzilla 158564 |
static java.lang.String |
getLocalPortNumber()
Returns the local port number specified in the AC preference pages |
static java.util.List |
getLogAgentInProcess(org.eclipse.emf.ecore.EObject selObject)
Returns a list of log objects in the given process. |
static java.util.Collection |
getLogAgents(org.eclipse.emf.ecore.EObject eObject)
Returns the log agents associated with the given object. |
static java.util.Collection |
getLogAgents(org.eclipse.emf.ecore.EObject eObject,
int type)
Returns the log agents associated with the given object and type of log. |
static java.util.List |
getLogObjectInMonitor(org.eclipse.emf.ecore.EObject selObject)
Returns a list of log objects in the given monitor. |
static java.util.List |
getLogObjectInNode(org.eclipse.emf.ecore.EObject selObject)
Returns a list of log objects in the given node. |
static org.eclipse.emf.ecore.EObject |
getMofObject()
Returns the selected trace or log object in the Profiling Monitors view or Log Navigator. |
static java.util.List |
getMonitors(org.eclipse.core.resources.IResource resource,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Returns the monitors associated with the given resouce and resource set. |
static org.eclipse.emf.ecore.EObject |
getNavigatorSelection(org.eclipse.hyades.ui.internal.navigator.INavigator navigator)
Returns the selection for the given navigator. |
static org.eclipse.emf.ecore.EObject |
getObjectToView(org.eclipse.emf.ecore.EObject selObject)
Returns the object that should be viewed for the given selection object. |
static java.util.Collection |
getProcesses(TRCMonitor monitor)
Returns the processes associated with the given monitor |
static java.lang.String |
getProcessName(TRCProcessProxy process)
Returns an appropriate label for the given process. |
static java.util.List |
getResources(org.eclipse.core.resources.IProject project)
Returns the resources associated with the given project. |
static org.eclipse.core.resources.IResource |
getSelectionFolder(org.eclipse.hyades.ui.internal.navigator.INavigator viewer)
Returns the folder for the given viewer. |
static org.eclipse.core.resources.IResource |
getSelectionFolder(java.lang.Object selection)
Returns the folder for the given selection |
static java.lang.String |
resolveLogAgentDisplayName(java.lang.String name)
|
static java.lang.String |
resolveLogAgentPath(java.lang.String name)
|
static java.lang.String |
resolveLogAgentType(java.lang.String name)
|
static int |
testConnection(java.lang.String host,
java.lang.String port,
boolean message,
org.eclipse.swt.widgets.Shell shell)
Tests the connection of the given host and port returning the status of the test. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CONNECTION_SUCCESS
public static final int CONNECTION_CONTROLLER_ERROR
public static final int CONNECTION_HOST_ERROR
public static final int CONNECTION_PORT_ERROR
| Constructor Detail |
|---|
public HyadesUtil()
| Method Detail |
|---|
public static org.eclipse.core.resources.IResource getSelectionFolder(java.lang.Object selection)
selection - an Object, the selection
public static org.eclipse.core.resources.IResource getSelectionFolder(org.eclipse.hyades.ui.internal.navigator.INavigator viewer)
selection - an INavigator, the viewer
public static java.lang.String getAgentLabel(TRCAgentProxy a)
a - TRCAgentProxy instance
public static java.lang.String getAgentName(TRCAgentProxy agent)
agent - a TRCAgentProxy, the agent for which the displayable name is
returned.
public static org.eclipse.hyades.ui.internal.navigator.INavigator getActiveNavigator()
public static short containsMixedResources(TRCAgentProxy[] agentProxies)
agentProxies - an array of TRCAgentProxy instances, the agent proxies
public static java.util.Collection getLogAgents(org.eclipse.emf.ecore.EObject eObject)
eObject - an EObject, the given object.
public static java.util.Collection getProcesses(TRCMonitor monitor)
monitor - a TRCMonitor, the given monitor
public static java.util.List getResources(org.eclipse.core.resources.IProject project)
project - an IProject, the given project
public static java.util.List getMonitors(org.eclipse.core.resources.IResource resource,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resource - an IResource, the given resourceresourceSet - a ResourceSet, the given resource set
public static java.lang.String change(java.lang.String in,
java.lang.String oldPat,
java.lang.String newPat)
in - a String, the input StringoldPat - a String, the pattern to be replacednewPat - a String, the pattern replacing the old pattern
public static org.eclipse.emf.ecore.EObject getMofObject()
public static org.eclipse.emf.ecore.EObject getNavigatorSelection(org.eclipse.hyades.ui.internal.navigator.INavigator navigator)
navigator - an INavigator instance, the given navigator
public static int testConnection(java.lang.String host,
java.lang.String port,
boolean message,
org.eclipse.swt.widgets.Shell shell)
host - a String, the host for testing the connectionport - a String, the port associated with the hostmessage - a boolean if true, displays a popup messageshell - a Shell instance the shell for any popup messages
public static org.eclipse.emf.ecore.EObject getObjectToView(org.eclipse.emf.ecore.EObject selObject)
selObject - an EObject, the selected object
public static java.util.List getLogAgentInProcess(org.eclipse.emf.ecore.EObject selObject)
selObject - an EObject, the given process
public static java.util.List getLogObjectInNode(org.eclipse.emf.ecore.EObject selObject)
selObject - an EObject, the given node
public static java.util.List getLogObjectInMonitor(org.eclipse.emf.ecore.EObject selObject)
selObject - an EObject, the given monitor
public static java.util.Collection getLogAgents(org.eclipse.emf.ecore.EObject eObject,
int type)
eObject - an EObject, the given object.type - an int, the type of log (CommonUIConstants.XMI or
CommonUIConstants.SQL).
public static java.lang.String resolveLogAgentDisplayName(java.lang.String name)
name -
public static java.lang.String resolveLogAgentType(java.lang.String name)
name -
public static void cleanupResources(java.lang.String navigatorID)
navigatorID - a String, the navigator ID
public static void getAgentType(TRCMonitor monitor,
java.util.Vector agentTypeList)
monitor - The monitor that's of interestagentTypeList - The vector to add the agent types to
public static void getAgentType(TRCNode node,
java.util.Vector agentTypeList)
node - The node that's of interestagentTypeList - The vector to add the agent types to
public static void getAgentType(TRCProcessProxy process,
java.util.Vector agentTypeList)
process - The process that's of interestagentTypeList - The vector to add the agent types topublic static java.lang.String getAgentType(TRCAgentProxy agent)
public static java.lang.String codeLogAgentName(java.lang.String type,
java.lang.String name,
java.lang.String userInput)
type - name - userInput -
public static java.lang.String resolveLogAgentPath(java.lang.String name)
name -
public static java.lang.String getProcessName(TRCProcessProxy process)
process - the process element for which to get the label.
public static java.lang.String getLocalPortNumber()
|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||