Class TmfProjectModelPreferences
java.lang.Object
org.eclipse.tracecompass.tmf.ui.project.model.TmfProjectModelPreferences
Singleton class to access the project model preferences of Trace Compass.
This preference allows for customization of project model element label and
icon.
- Since:
- 3.2
- Author:
- Bernd Hufmann
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable org.eclipse.swt.graphics.ImageGet the preference value of the project model element iconstatic @NonNull StringGet the preference value of the project model element labelstatic voidsetProjectModelIcon(@NonNull String bundleSymbolicName, @NonNull String iconPath) Sets the preference of the project model element iconstatic voidsetProjectModelLabel(@NonNull String bundleSymbolicName, @NonNull String label) Sets the preference of the project model element label
-
Method Details
-
setProjectModelLabel
Sets the preference of the project model element label- Parameters:
bundleSymbolicName- the symbolic name of the bundle defining the iconlabel- the label
-
setProjectModelIcon
public static void setProjectModelIcon(@NonNull String bundleSymbolicName, @NonNull String iconPath) Sets the preference of the project model element icon- Parameters:
bundleSymbolicName- the symbolic name of the bundle defining the iconiconPath- the icon relative path to the bundle root
-
getProjectModelLabel
Get the preference value of the project model element label- Returns:
- the label of the project model element
-
getProjectModelIcon
public static @Nullable org.eclipse.swt.graphics.Image getProjectModelIcon()Get the preference value of the project model element icon- Returns:
- the image object of the project element icon
-