Class TmfAnalysisElement
java.lang.Object
org.eclipse.tracecompass.tmf.ui.project.model.TmfProjectModelElement
org.eclipse.tracecompass.tmf.ui.project.model.TmfAnalysisElement
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,ITmfProjectModelElement,ITmfStyledProjectModelElement,org.eclipse.ui.views.properties.IPropertySource,org.eclipse.ui.views.properties.IPropertySource2
- Direct Known Subclasses:
TmfAggregateAnalysisElement
public class TmfAnalysisElement
extends TmfProjectModelElement
implements ITmfStyledProjectModelElement, org.eclipse.ui.views.properties.IPropertySource2
Class for project elements of type analysis modules
- Since:
- 2.0
- Author:
- Geneviève Bastien
-
Method Summary
Modifier and TypeMethodDescriptionvoidMake sure the trace this analysis is associated to is the currently selected onebooleanChecks whether the analysis can be executed or not.Gets the analysis id of this moduleGet the list of analysis output model elements under this analysisorg.osgi.framework.BundleGets the bundle this analysis is fromGets the help message for this analysisorg.eclipse.swt.graphics.ImagegetIcon()Returns the icon of this element.Gets the icon file name for the analysisReturns the parent of this model element.org.eclipse.ui.views.properties.IPropertyDescriptor[]org.eclipse.jface.viewers.StyledString.StylerReturn the styler who will apply its style to the text string.final booleanfinal booleanisPropertySet(Object id) final voidorg.eclipse.core.runtime.IStatusSchedule an analysisfinal voidsetPropertyValue(Object id, Object value) Methods inherited from class org.eclipse.tracecompass.tmf.ui.project.model.TmfProjectModelElement
equals, getAdapter, getChildren, getLocation, getName, getPath, getProject, getResource, getTraceSupplementaryFolder, hashCode, prepareTraceSupplementaryFolder, prepareTraceSupplementaryFolder, refresh, refreshViewer, toStringMethods inherited from interface org.eclipse.tracecompass.tmf.ui.project.model.ITmfProjectModelElement
dispose, getChild, getLabelText, hasChildren
-
Method Details
-
getParent
Description copied from interface:ITmfProjectModelElementReturns the parent of this model element.- Specified by:
getParentin interfaceITmfProjectModelElement- Overrides:
getParentin classTmfProjectModelElement- Returns:
- the parent of this model element.
- Since:
- 2.0
-
getIcon
public org.eclipse.swt.graphics.Image getIcon()Description copied from interface:ITmfProjectModelElementReturns the icon of this element.- Specified by:
getIconin interfaceITmfProjectModelElement- Returns:
- The icon
- Since:
- 2.0
-
getStyler
public org.eclipse.jface.viewers.StyledString.Styler getStyler()Description copied from interface:ITmfStyledProjectModelElementReturn the styler who will apply its style to the text string.- Specified by:
getStylerin interfaceITmfStyledProjectModelElement- Returns:
- The style object, or 'null' for no special style
-
getAvailableOutputs
Get the list of analysis output model elements under this analysis- Returns:
- Array of analysis output elements
-
getAnalysisId
Gets the analysis id of this module- Returns:
- The analysis id
-
getHelpMessage
Gets the help message for this analysis- Returns:
- The help message
-
getIconFile
Gets the icon file name for the analysis- Returns:
- The analysis icon file name
-
getBundle
public org.osgi.framework.Bundle getBundle()Gets the bundle this analysis is from- Returns:
- The analysis bundle
-
activateParentTrace
public void activateParentTrace()Make sure the trace this analysis is associated to is the currently selected one- Since:
- 2.0
-
canExecute
public boolean canExecute()Checks whether the analysis can be executed or not.- Returns:
trueif analysis can be executed elsefalse- Since:
- 3.0
-
scheduleAnalysis
public org.eclipse.core.runtime.IStatus scheduleAnalysis()Schedule an analysis- Returns:
- the status of the analysis scheduling
- Since:
- 5.2
-
getEditableValue
- Specified by:
getEditableValuein interfaceorg.eclipse.ui.views.properties.IPropertySource- Since:
- 2.0
-
getPropertyDescriptors
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()- Specified by:
getPropertyDescriptorsin interfaceorg.eclipse.ui.views.properties.IPropertySource- Since:
- 2.0
-
getPropertyValue
- Specified by:
getPropertyValuein interfaceorg.eclipse.ui.views.properties.IPropertySource- Since:
- 2.0
-
resetPropertyValue
- Specified by:
resetPropertyValuein interfaceorg.eclipse.ui.views.properties.IPropertySource- Since:
- 2.0
-
setPropertyValue
- Specified by:
setPropertyValuein interfaceorg.eclipse.ui.views.properties.IPropertySource- Since:
- 2.0
-
isPropertyResettable
- Specified by:
isPropertyResettablein interfaceorg.eclipse.ui.views.properties.IPropertySource2- Since:
- 2.0
-
isPropertySet
- Specified by:
isPropertySetin interfaceorg.eclipse.ui.views.properties.IPropertySource- Specified by:
isPropertySetin interfaceorg.eclipse.ui.views.properties.IPropertySource2- Since:
- 2.0
-