Package com._1c.g5.v8.dt.md.sort
Class MdSortPreferences
- java.lang.Object
-
- com._1c.g5.v8.dt.md.sort.MdSortPreferences
-
public final class MdSortPreferences extends Object
Constants and utility methods for metadata objects sort preferences in the project.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ASCENDING_SORT
Key for the ascending sort direction flag.static boolean
DEFAULT_ASCENDING_SORT
The key for the default value of the ascending sort direction flag.static boolean
DEFAULT_NATURAL_SORT_ORDER
The key for the default value of the natural sort order flag.static String
NATURAL_SORT_ORDER
Key for the natural sort order flag.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.core.runtime.preferences.IEclipsePreferences
getPreferences(org.eclipse.core.resources.IProject project)
Returns the project preferences.static boolean
isAscendingSort(org.eclipse.core.resources.IProject project)
Checks if the sort direction is ascending in the project.static boolean
isNaturalSortOrder(org.eclipse.core.resources.IProject project)
Checks if the sort order natural or as in the designer in the project.
-
-
-
Field Detail
-
ASCENDING_SORT
public static final String ASCENDING_SORT
Key for the ascending sort direction flag.- See Also:
- Constant Field Values
-
NATURAL_SORT_ORDER
public static final String NATURAL_SORT_ORDER
Key for the natural sort order flag.- See Also:
- Constant Field Values
-
DEFAULT_ASCENDING_SORT
public static final boolean DEFAULT_ASCENDING_SORT
The key for the default value of the ascending sort direction flag.- See Also:
- Constant Field Values
-
DEFAULT_NATURAL_SORT_ORDER
public static final boolean DEFAULT_NATURAL_SORT_ORDER
The key for the default value of the natural sort order flag.- See Also:
- Constant Field Values
-
-
Method Detail
-
isAscendingSort
public static boolean isAscendingSort(org.eclipse.core.resources.IProject project)
Checks if the sort direction is ascending in the project. By default returnstrue
.- Parameters:
project
- the project to check, cannot benull
- Returns:
true
if the sort is ascending,false
otherwise
-
isNaturalSortOrder
public static boolean isNaturalSortOrder(org.eclipse.core.resources.IProject project)
Checks if the sort order natural or as in the designer in the project. By default returnstrue
.- Parameters:
project
- the project to check, cannot benull
- Returns:
true
if the sort order is natural,false
if the sort order is as in the designer
-
getPreferences
public static org.eclipse.core.runtime.preferences.IEclipsePreferences getPreferences(org.eclipse.core.resources.IProject project)
Returns the project preferences.- Parameters:
project
- the project to get the preferences for, cannot benull
- Returns:
- the project preferences, never
null
-
-