Package com.e1c.langtool.v8.dt
Class Utils
java.lang.Object
com.e1c.langtool.v8.dt.Utils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.emf.common.util.URIgetObjectURIRelativeTo(org.eclipse.emf.common.util.URI baseURI, org.eclipse.emf.ecore.EObject object) ConstructURIfrom givenbaseURIand fragment part calculated fromobject.static String[]getParamsFromNls(String nlsString) Gets the parameters from nls string.getParamsMapFromNls(String nlsString) Gets the params map from nls string.getStrTemplateParams(String value)
-
Field Details
-
FQN_KEY
- See Also:
-
FQN_PARAM
- See Also:
-
FQN_COMMENT
- See Also:
-
-
Method Details
-
getObjectURIRelativeTo
public static org.eclipse.emf.common.util.URI getObjectURIRelativeTo(org.eclipse.emf.common.util.URI baseURI, org.eclipse.emf.ecore.EObject object) ConstructURIfrom givenbaseURIand fragment part calculated fromobject.- Parameters:
baseURI- Base URI.object- Object , will donate URI fragment part.- Returns:
- URI
-
getParamsFromNls
Gets the parameters from nls string. Find parameters like[ParamName1]or like%ParamName2%.- Parameters:
nlsString- the nls string- Returns:
- the params array from nls, cannot return
null.
-
getParamsMapFromNls
Gets the params map from nls string. Find parameters like[ParamName1]or like%ParamName2%.- Parameters:
nlsString- the nls string- Returns:
- the params map from nls, where key is the name of parameter like
ParamName1and value is full source string like[ParamName1]or like%ParamName1%
-
getStrTemplateParams
-