Class ResourceBundleHelper


  • public final class ResourceBundleHelper
    extends Object
    Helper for creating the aggregate resource bundle used by the workflow designer.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • ResourceBundleHelper

        public ResourceBundleHelper()
    • Method Detail

      • getResourceBundleForSelection

        public static ResourceBundle getResourceBundleForSelection​(FlowchartSelection<?> selection,
                                                                   Mandant client,
                                                                   Locale locale)
        Parameters:
        selection - Current flowchart selection for which to find the resource bundle.
        client - Current client for locating workflow element plugins.
        locale - Current locale for which to get the resource bundle.
        Returns:
        The resource bundle that should be used by the currently selected workflow element (node or trigger). This takes into account the IElementHandler.getResourceBundle(java.util.Locale).
      • getResourceBundleForElement

        public static ResourceBundle getResourceBundleForElement​(EWorkflowElementType kind,
                                                                 String type,
                                                                 Mandant client,
                                                                 Locale locale)
        Parameters:
        kind - Whether the element is a node or trigger.
        type - Type of the element for which to find the resource bundle.
        client - Current client for locating workflow element plugins.
        locale - Current locale for which to get the resource bundle.
        Returns:
        The resource bundle that should be used by the currently selected workflow element (node or trigger). This takes into account the IElementHandler.getResourceBundle(java.util.Locale).