Moved `NamingConvention` from the settings package to a new settings.presets package. This involved modifying various import statements across the application and updating methods that utilised this enum. Increased the `KeyCaseFormater` minimum and preferred width to 200 for better UI rendering.
64 lines
1.2 KiB
Java
64 lines
1.2 KiB
Java
package de.marhali.easyi18n.settings;
|
|
|
|
import de.marhali.easyi18n.io.parser.ParserStrategyType;
|
|
import de.marhali.easyi18n.io.folder.FolderStrategyType;
|
|
|
|
import de.marhali.easyi18n.settings.presets.NamingConvention;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/**
|
|
* API to access the project-specific configuration for this plugin.
|
|
*
|
|
* @author marhaliu
|
|
*/
|
|
public interface ProjectSettings {
|
|
// Resource Configuration
|
|
@Nullable
|
|
String getLocalesDirectory();
|
|
|
|
@NotNull
|
|
FolderStrategyType getFolderStrategy();
|
|
|
|
@NotNull
|
|
ParserStrategyType getParserStrategy();
|
|
|
|
@NotNull
|
|
String getFilePattern();
|
|
|
|
boolean isIncludeSubDirs();
|
|
|
|
boolean isSorting();
|
|
|
|
// Editor Configuration
|
|
@Nullable
|
|
String getNamespaceDelimiter();
|
|
|
|
@NotNull
|
|
String getSectionDelimiter();
|
|
|
|
@Nullable
|
|
String getContextDelimiter();
|
|
|
|
@Nullable
|
|
String getPluralDelimiter();
|
|
|
|
@Nullable
|
|
String getDefaultNamespace();
|
|
|
|
@NotNull
|
|
String getPreviewLocale();
|
|
|
|
boolean isNestedKeys();
|
|
|
|
boolean isAssistance();
|
|
|
|
// Experimental Configuration
|
|
boolean isAlwaysFold();
|
|
|
|
String getFlavorTemplate();
|
|
|
|
@NotNull
|
|
NamingConvention getCaseFormat();
|
|
}
|