if (className.length() == 0) MessageDialog.openError(getShell(), Messages.ContextValueDialog_ERROR, Messages.ContextValueDialog_MUST_CHOOSE_CLASS);
String singularClassName = singleValueText.getText().trim();
Class<?> singularClass = null;
if (null != singularClassName && singularClassName.trim().length() > 0) singularClass = ConfigurationManager.getInstance(resource.getProject()).getClass(singularClassName);
if (className.length() == 0) singularClassName = null;
contextValue = new ContextValue(
name,
ConfigurationManager.getInstance(resource.getProject()).getClass(className),
singularClass);
ConfigurationManager.getInstance(resource.getProject()).addContextValue(contextValue, resource);
}