1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-12-02 09:11:56 +02:00

#1 Выбор типа общего модуля из списка при создании нового

This commit is contained in:
Dmitriy Marmyshev
2021-08-31 16:18:48 +03:00
parent 684ef38d47
commit af1ba40732
5 changed files with 37 additions and 9 deletions

View File

@@ -260,7 +260,7 @@ public class CommonModuleTypeDtNewWizardPage
{
return type.getTitle();
}
return type.getTitle() + " +(" + suffix + ")"; //$NON-NLS-1$ //$NON-NLS-2$
return type.getTitle() + " (" + suffix + ")"; //$NON-NLS-1$ //$NON-NLS-2$
}
return super.getText(element);
}

View File

@@ -1,3 +1,4 @@
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
###############################################################################
# Copyright (C) 2021, 1C-Soft LLC and others.
#
@@ -10,7 +11,11 @@
# Contributors:
# 1C-Soft LLC - initial API and implementation
###############################################################################
CommonModuleTypeDtNewWizardPage_Choose_valid_common_module_type_from_list=Choose valid common module type from list
CommonModuleTypeDtNewWizardPage_Select_common_module_type=Select common module type
CommonModuleTypeDtNewWizardPage_Select_type=Select type
CommonModuleTypeDtNewWizardPage_Select_type_from_list=Select type from list
CommonModuleTypeDtNewWizardPage_Choose_valid_common_module_type_from_list = Choose valid common module type from list
CommonModuleTypeDtNewWizardPage_Select_common_module_type = Select common module type
CommonModuleTypeDtNewWizardPage_Select_type = Select type (name suffix)
CommonModuleTypeDtNewWizardPage_Select_type_from_list = Select type from list

View File

@@ -1,3 +1,4 @@
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
###############################################################################
# Copyright (C) 2021, 1C-Soft LLC and others.
#
@@ -12,10 +13,10 @@
###############################################################################
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
CommonModuleTypeDtNewWizardPage_Choose_valid_common_module_type_from_list = Выберите подходящий тип общего моделя из списка
CommonModuleTypeDtNewWizardPage_Choose_valid_common_module_type_from_list = Выберите подходящий тип общего модуля из списка
CommonModuleTypeDtNewWizardPage_Select_common_module_type = Выберите тип общего модуля
CommonModuleTypeDtNewWizardPage_Select_type = Выберите тип
CommonModuleTypeDtNewWizardPage_Select_type = Выберите тип (суффикс имени)
CommonModuleTypeDtNewWizardPage_Select_type_from_list = Выберите тип из списка

View File

@@ -207,21 +207,42 @@ public enum CommonModuleTypes
this.featureValues = featureValues;
}
/**
* Gets the localizable title of the type.
*
* @return the title, cannot return {@code null}.
*/
public String getTitle()
{
return title;
}
public String[] getNameSuffixs()
/**
* Gets the dually-named name suffixes where first is English script variant and second is Russian script variant.
*
* @return the name suffixes, cannot return {@code null}.
*/
public String[] getNameSuffixes()
{
return nameSuffix;
}
/**
* Gets the name suffix for the specific script variant of the project.
*
* @param scriptVariant the script variant, cannot be {@code null}.
* @return the name suffix, cannot return {@code null}.
*/
public String getNameSuffix(ScriptVariant scriptVariant)
{
return nameSuffix[scriptVariant.getValue()];
}
/**
* Gets the feature values for the type of common module.
*
* @return the feature values, cannot return {@code null}.
*/
public Map<EStructuralFeature, Object> getFeatureValues()
{
return featureValues;

View File

@@ -1,3 +1,4 @@
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
###############################################################################
# Copyright (C) 2021, 1C-Soft LLC and others.
#
@@ -26,7 +27,7 @@ CommonModuleTypes_Client_module = Клиентский модуль
CommonModuleTypes_Server_Cached_module = Серверный модуль с повторным использованием возвращаемых значений
CommonModuleTypes_Server_Full_access_module = Серверный модуль с привелегированным режимом исполнения
CommonModuleTypes_Server_Full_access_module = Серверный модуль с привилегированным режимом исполнения
CommonModuleTypes_Server_Localization_module = Серверный модуль, реализующий национальную специфику