Class ResourceBundleHelper
java.lang.Object
de.xima.fc.workflow.designer.helper.ResourceBundleHelper
Helper for creating the aggregate resource bundle used by the workflow designer.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceBundle
getResourceBundleForElement
(EWorkflowElementType kind, String type, Mandant client, Locale locale) static ResourceBundle
getResourceBundleForSelection
(FlowchartSelection<?> selection, Mandant client, Locale locale)
-
Constructor Details
-
ResourceBundleHelper
public ResourceBundleHelper()
-
-
Method Details
-
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)
.
-