org.eclipse.hyades.trace.views.internal.view.columnlabels
Class ContextUpdaterHelper
java.lang.Object
org.eclipse.hyades.trace.views.internal.view.columnlabels.ContextUpdaterHelper
- public class ContextUpdaterHelper
- extends java.lang.Object
|
Method Summary |
static void |
addSnapshots(ColumnLabelAdapter col,
org.eclipse.hyades.models.trace.impl.TRCPackageImpl.TRCPackageSnapshot ps,
org.eclipse.hyades.models.trace.impl.TRCClassImpl.TRCClassSnapshot cs,
org.eclipse.hyades.models.trace.impl.TRCMethodImpl.TRCMethodSnapshot ms)
|
static java.lang.String |
getContext(org.eclipse.emf.ecore.EObject eObject)
|
static java.lang.String[] |
getContexts(org.eclipse.emf.ecore.EObject eObject)
|
static java.lang.String |
getCurrentContext(java.lang.String[] contexts,
IContextViewer viewer)
|
static java.lang.String |
getCurrentFocusContextLanguage()
|
static org.eclipse.emf.ecore.EObject |
getEObject(java.lang.Object element)
|
static void |
setCurrentFocusContextLanguage(java.lang.String context)
|
static ColumnDisplayInfo |
updateActiveSize(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalActiveSize)
|
static ColumnDisplayInfo |
updateAvgBaseTime(ColumnLabelAdapter col,
boolean showPercent,
double maxTime)
|
static ColumnDisplayInfo |
updateBaseTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double maxTime)
|
static ColumnDisplayInfo |
updateCalls(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
boolean isCallsMeaningfull,
double totalCalls)
|
static ColumnDisplayInfo |
updateCollectedInst(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalInst)
|
static ColumnDisplayInfo |
updateCPUTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalCPUTime)
|
static ColumnDisplayInfo |
updateCumulTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
int drawMode,
double maxTime)
|
static ColumnDisplayInfo |
updateInhBaseTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double maxTime)
|
static ColumnDisplayInfo |
updateInhCalls(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalCalls)
|
static ColumnDisplayInfo |
updateInhCumulTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double maxTime)
|
static ColumnDisplayInfo |
updateLiveInstances(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double activeInstances)
|
static ColumnDisplayInfo |
updatePackageName(ColumnLabelAdapter col,
org.eclipse.emf.ecore.EObject mofObject)
|
static ColumnDisplayInfo |
updateRefCol(ColumnLabelAdapter col,
boolean showReferTo)
|
static ColumnDisplayInfo |
updateTotalInstances(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalInstances)
|
static ColumnDisplayInfo |
updateTotalSize(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalSize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextUpdaterHelper
public ContextUpdaterHelper()
updatePackageName
public static ColumnDisplayInfo updatePackageName(ColumnLabelAdapter col,
org.eclipse.emf.ecore.EObject mofObject)
updateActiveSize
public static ColumnDisplayInfo updateActiveSize(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalActiveSize)
updateAvgBaseTime
public static ColumnDisplayInfo updateAvgBaseTime(ColumnLabelAdapter col,
boolean showPercent,
double maxTime)
updateBaseTime
public static ColumnDisplayInfo updateBaseTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double maxTime)
updateCalls
public static ColumnDisplayInfo updateCalls(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
boolean isCallsMeaningfull,
double totalCalls)
updateCollectedInst
public static ColumnDisplayInfo updateCollectedInst(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalInst)
updateCPUTime
public static ColumnDisplayInfo updateCPUTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalCPUTime)
updateCumulTime
public static ColumnDisplayInfo updateCumulTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
int drawMode,
double maxTime)
updateInhBaseTime
public static ColumnDisplayInfo updateInhBaseTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double maxTime)
updateInhCalls
public static ColumnDisplayInfo updateInhCalls(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalCalls)
updateInhCumulTime
public static ColumnDisplayInfo updateInhCumulTime(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double maxTime)
updateLiveInstances
public static ColumnDisplayInfo updateLiveInstances(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double activeInstances)
updateRefCol
public static ColumnDisplayInfo updateRefCol(ColumnLabelAdapter col,
boolean showReferTo)
updateTotalInstances
public static ColumnDisplayInfo updateTotalInstances(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalInstances)
updateTotalSize
public static ColumnDisplayInfo updateTotalSize(ColumnLabelAdapter col,
boolean isDeltaColumn,
boolean showPercent,
double totalSize)
addSnapshots
public static void addSnapshots(ColumnLabelAdapter col,
org.eclipse.hyades.models.trace.impl.TRCPackageImpl.TRCPackageSnapshot ps,
org.eclipse.hyades.models.trace.impl.TRCClassImpl.TRCClassSnapshot cs,
org.eclipse.hyades.models.trace.impl.TRCMethodImpl.TRCMethodSnapshot ms)
getContexts
public static java.lang.String[] getContexts(org.eclipse.emf.ecore.EObject eObject)
getContext
public static java.lang.String getContext(org.eclipse.emf.ecore.EObject eObject)
getEObject
public static org.eclipse.emf.ecore.EObject getEObject(java.lang.Object element)
setCurrentFocusContextLanguage
public static void setCurrentFocusContextLanguage(java.lang.String context)
getCurrentFocusContextLanguage
public static java.lang.String getCurrentFocusContextLanguage()
getCurrentContext
public static java.lang.String getCurrentContext(java.lang.String[] contexts,
IContextViewer viewer)