本文整理汇总了Java中org.insightech.er.preference.PreferenceInitializer.getTranslationPath方法的典型用法代码示例。如果您正苦于以下问题:Java PreferenceInitializer.getTranslationPath方法的具体用法?Java PreferenceInitializer.getTranslationPath怎么用?Java PreferenceInitializer.getTranslationPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.insightech.er.preference.PreferenceInitializer
的用法示例。
在下文中一共展示了PreferenceInitializer.getTranslationPath方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getErrorMessage
import org.insightech.er.preference.PreferenceInitializer; //导入方法依赖的package包/类
@Override
protected String getErrorMessage() {
if (isBlank(dictionaryNameText)) {
return "error.translation.dictionary.name.empty";
}
final String fileName = dictionaryNameText.getText().trim();
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
final IStatus result = workspace.validateName(fileName, IResource.FILE);
if (!result.isOK()) {
return result.getMessage();
}
final File file = new File(PreferenceInitializer.getTranslationPath(fileName));
if (file.exists()) {
return "error.translation.dictionary.name.duplicated";
}
return null;
}
示例2: getErrorMessage
import org.insightech.er.preference.PreferenceInitializer; //导入方法依赖的package包/类
@Override
protected String getErrorMessage() {
if (isBlank(this.dictionaryNameText)) {
return "error.translation.dictionary.name.empty";
}
String fileName = this.dictionaryNameText.getText().trim();
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IStatus result = workspace.validateName(fileName, IResource.FILE);
if (!result.isOK()) {
return result.getMessage();
}
File file = new File(PreferenceInitializer.getTranslationPath(fileName));
if (file.exists()) {
return "error.translation.dictionary.name.duplicated";
}
return null;
}
示例3: getStorePath
import org.insightech.er.preference.PreferenceInitializer; //导入方法依赖的package包/类
@Override
protected String getStorePath(final String name) {
return PreferenceInitializer.getTranslationPath(name);
}
示例4: getStorePath
import org.insightech.er.preference.PreferenceInitializer; //导入方法依赖的package包/类
@Override
protected String getStorePath(String name) {
return PreferenceInitializer.getTranslationPath(name);
}