@OpenApiAll
public class ResourceManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT |
static int |
DIALOG_RESOURCE |
static java.lang.String |
EXTENSION |
static int |
METAMODEL_RESOURCE |
static int |
PROPERTY_RESOURCE |
static java.lang.String[] |
RESOURCES_CLASS_NAMES |
Constructor and Description |
---|
ResourceManager() |
Modifier and Type | Method and Description |
---|---|
static void |
createAvailableClassPropertyLanguages()
Creates available languages list.
|
static void |
createAvailableLanguages()
Creates Available language.
|
static java.lang.String |
formatMessage(java.lang.Object[] messageArguments,
java.lang.String message) |
static java.lang.String |
formatMessage(java.lang.String message,
java.lang.String... arguments) |
static java.util.Set<java.lang.String> |
getAvailableLanguages() |
static java.lang.String |
getCommandResource(java.lang.String key)
Deprecated.
|
static java.lang.String |
getDialogResource(java.lang.String key)
Deprecated.
|
static java.util.Locale |
getLocale()
Gets set locale.
|
static com.nomagic.magicdraw.resources.LocaleInfo |
getLocaleInfo() |
static java.lang.String |
getMenuResource(java.lang.String key)
Deprecated.
|
static java.lang.String |
getMetaModelResource(java.lang.Class type)
Returns meta model resource.
|
static java.lang.String |
getMetaModelResource(MDElement presentationElement)
Returns meta model resource.
|
static java.lang.String |
getMetaModelResource(javax.jmi.reflect.RefObject element)
Returns meta model resource.
|
static java.lang.String |
getMetaModelResource(java.lang.String key)
Deprecated.
|
static java.lang.String |
getPropertyResource(MDElement presentationElement)
Deprecated.
|
static java.lang.String |
getPropertyResource(javax.jmi.reflect.RefObject element)
Deprecated.
|
static java.lang.String |
getPropertyResource(java.lang.String key)
Deprecated.
|
static java.lang.String |
getStringFor(java.lang.String key,
int bundle)
Get string according to key and bundle id.
|
static java.lang.String |
getStringFor(java.lang.String key,
int bundle,
java.lang.Object[] messageArguments)
Get string according to key and bundle id.
|
static java.lang.String |
getStringFor(java.lang.String key,
int bundle,
java.lang.String messageArguments)
Get string according to key and bundle id.
|
static java.lang.String |
getStringFor(java.lang.String key,
java.lang.String bundleName,
java.lang.ClassLoader loader)
Get string according to key and bundle id.
|
static java.lang.String |
getToolTipResource(java.lang.String key)
Deprecated.
|
static void |
setLocale(java.util.Locale locale) |
static void |
setLocale(com.nomagic.magicdraw.resources.LocaleInfo localeInfo)
Sets locale.
|
public static final int DIALOG_RESOURCE
public static final int PROPERTY_RESOURCE
public static final int METAMODEL_RESOURCE
public static final java.lang.String[] RESOURCES_CLASS_NAMES
public static final java.lang.String EXTENSION
public static final java.lang.String DEFAULT
@Deprecated public static java.lang.String getMetaModelResource(java.lang.String key)
MetaModelResource.getString(String)
public static java.lang.String getMetaModelResource(java.lang.Class type)
public static java.lang.String getMetaModelResource(MDElement presentationElement)
public static java.lang.String getMetaModelResource(javax.jmi.reflect.RefObject element)
@Deprecated public static java.lang.String getMenuResource(java.lang.String key)
DialogResource.getString(String)
@Deprecated public static java.lang.String getCommandResource(java.lang.String key)
DialogResource.getString(String)
@Deprecated public static java.lang.String getDialogResource(java.lang.String key)
DialogResource.getString(String)
@Deprecated public static java.lang.String getToolTipResource(java.lang.String key)
DialogResource.getString(String)
@Deprecated public static java.lang.String getPropertyResource(java.lang.String key)
PropertyResource.getString(String)
@Deprecated public static java.lang.String getPropertyResource(MDElement presentationElement)
@Deprecated public static java.lang.String getPropertyResource(javax.jmi.reflect.RefObject element)
public static java.lang.String getStringFor(java.lang.String key, int bundle)
key
- Key to fetch stringbundle
- Bundle IDpublic static java.lang.String getStringFor(java.lang.String key, @CheckForNull java.lang.String bundleName, @CheckForNull java.lang.ClassLoader loader)
key
- Key to fetch stringbundleName
- Bundle nameloader
- loader to load resourcespublic static java.lang.String getStringFor(java.lang.String key, int bundle, java.lang.String messageArguments)
key
- Key to fetch stringbundle
- Bundle IDmessageArguments
- Set of the message bundle arguments.public static java.lang.String getStringFor(java.lang.String key, int bundle, @CheckForNull java.lang.Object[] messageArguments)
key
- Key to fetch stringbundle
- Bundle idmessageArguments
- Set of the message bundle arguments.public static java.lang.String formatMessage(java.lang.String message, java.lang.String... arguments)
public static java.lang.String formatMessage(java.lang.Object[] messageArguments, java.lang.String message)
public static java.util.Locale getLocale()
public static com.nomagic.magicdraw.resources.LocaleInfo getLocaleInfo()
public static void setLocale(java.util.Locale locale)
public static void setLocale(com.nomagic.magicdraw.resources.LocaleInfo localeInfo)
localeInfo
- Bundles will be choose according this localepublic static java.util.Set<java.lang.String> getAvailableLanguages()
public static void createAvailableLanguages()
public static void createAvailableClassPropertyLanguages()