Class TmfProjectModelPreferences

java.lang.Object
org.eclipse.tracecompass.tmf.ui.project.model.TmfProjectModelPreferences

public final class TmfProjectModelPreferences extends Object
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 Details

    • setProjectModelLabel

      public static void setProjectModelLabel(@NonNull String bundleSymbolicName, @NonNull String label)
      Sets the preference of the project model element label
      Parameters:
      bundleSymbolicName - the symbolic name of the bundle defining the icon
      label - 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 icon
      iconPath - the icon relative path to the bundle root
    • getProjectModelLabel

      public static @NonNull String 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