Package com.nomagic.magicdraw.resources
Class DialogResource
java.lang.Object
com.nomagic.magicdraw.resources.DialogResource
This class is used to retrieve the resources from the command resource bundle files.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetString(DialogResource.ResourceID preferredResource, String key, Object... values) Get localized resource string according the given key.static StringGet localized resource string according the given key.static StringGet localized resource string according the given key.
-
Field Details
-
BUNDLE_NAME
- See Also:
-
-
Constructor Details
-
DialogResource
public DialogResource()
-
-
Method Details
-
getString
Get localized resource string according the given key.- Parameters:
key- key.- Returns:
- resource string.
-
getString
Get localized resource string according the given key.- Parameters:
key- key.values- message arguments.- Returns:
- resource string.
-
getString
public static String getString(@CheckForNull DialogResource.ResourceID preferredResource, String key, @CheckForNull Object... values) Get localized resource string according the given key.- Parameters:
preferredResource- id of preferred resource, if preferred resource has value use it.key- key.values- message arguments.- Returns:
- resource string.
-