本文整理匯總了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);
}