Package com._1c.g5.v8.dt.bsl.validation
Class BslPreferences
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.validation.BslPreferences
-
- All Implemented Interfaces:
IBslPreferences
public class BslPreferences extends Object implements IBslPreferences
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.bsl.common.IBslPreferences
IBslPreferences.EnvironmentLaunchMode
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_SERVERstatic StringDEEP_ANALYSIS_PROPERTIESstatic StringDOCUMENTATION_COMMENT_PROPERTIESstatic StringENV_LAUNCH_MODE_INDEXstatic StringMANAGED_ENVIRONMENTS_NODEstatic StringMOBILE_ENVIRONMENTS_NODEstatic StringRUNTIME_LAUNCH_NODEstatic StringTYPE_SYSTEM_PROPERTIES
-
Constructor Summary
Constructors Constructor Description BslPreferences()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteEnvs(org.eclipse.core.resources.IProject project)Deletes load environment forprojectstatic booleandetectIsClientServer(org.eclipse.core.resources.IProject project)Loads selectedEnvironmentfrom property page for projectstatic booleandetectIsClientServer(org.eclipse.emf.ecore.EObject object)Loads selectedEnvironmentfrom property page for projectDocumentationCommentPropertiesgetDocumentCommentProperties(org.eclipse.core.resources.IProject project)Gets properties for Bsl documentation comment.IBslPreferences.EnvironmentLaunchModegetEnvLaunchMode(org.eclipse.core.resources.IProject project)Gets saving value of environment "Default launch mode"EnvironmentsgetLoadEnvs(org.eclipse.core.resources.IProject project)Gets filteringEnvironmentsfrom property page for BSLEnvironmentsgetLoadEnvs(org.eclipse.emf.ecore.EObject object)Gets filteringEnvironmentsfrom property page for BSLTypeSystemPropertiesgetTypeSystemProperties(org.eclipse.core.resources.IProject project)Gets properties for Type System of Built-In language.Map<Environment,Boolean>loadEnv(org.eclipse.core.resources.IProject project, IBslPreferences.EnvironmentLaunchMode mode)Loads selectedEnvironmentfrom property page for projectbooleansetLaunchMode(org.eclipse.core.resources.IProject project, int mode)Sets value of environment "Launch mode"
-
-
-
Field Detail
-
MANAGED_ENVIRONMENTS_NODE
public static final String MANAGED_ENVIRONMENTS_NODE
- See Also:
- Constant Field Values
-
MOBILE_ENVIRONMENTS_NODE
public static final String MOBILE_ENVIRONMENTS_NODE
- See Also:
- Constant Field Values
-
RUNTIME_LAUNCH_NODE
public static final String RUNTIME_LAUNCH_NODE
- See Also:
- Constant Field Values
-
CLIENT_SERVER
public static final String CLIENT_SERVER
- See Also:
- Constant Field Values
-
ENV_LAUNCH_MODE_INDEX
public static final String ENV_LAUNCH_MODE_INDEX
- See Also:
- Constant Field Values
-
TYPE_SYSTEM_PROPERTIES
public static final String TYPE_SYSTEM_PROPERTIES
- See Also:
- Constant Field Values
-
DEEP_ANALYSIS_PROPERTIES
public static final String DEEP_ANALYSIS_PROPERTIES
- See Also:
- Constant Field Values
-
DOCUMENTATION_COMMENT_PROPERTIES
public static final String DOCUMENTATION_COMMENT_PROPERTIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
detectIsClientServer
public static boolean detectIsClientServer(org.eclipse.core.resources.IProject project)
Loads selectedEnvironmentfrom property page for project- Parameters:
project- -IProjectactual project, can't benull- Returns:
trueif this client-server,falseif it's file-server
-
detectIsClientServer
public static boolean detectIsClientServer(org.eclipse.emf.ecore.EObject object)
Loads selectedEnvironmentfrom property page for project- Parameters:
project- -EObjectfor determinating the actualIProject, can't benull- Returns:
trueif this client-server,falseif it's file-server
-
loadEnv
public Map<Environment,Boolean> loadEnv(org.eclipse.core.resources.IProject project, IBslPreferences.EnvironmentLaunchMode mode)
Description copied from interface:IBslPreferencesLoads selectedEnvironmentfrom property page for project- Specified by:
loadEnvin interfaceIBslPreferences- Parameters:
project- -IProjectactual project, can't benullmode- actual environment "Default run mode", can't benull- Returns:
- all allowed environments with boolean flag, never
null
-
getEnvLaunchMode
public IBslPreferences.EnvironmentLaunchMode getEnvLaunchMode(org.eclipse.core.resources.IProject project)
Description copied from interface:IBslPreferencesGets saving value of environment "Default launch mode"- Specified by:
getEnvLaunchModein interfaceIBslPreferences- Parameters:
project-IProjectactual project, can't benull- Returns:
- saving value of environment "Default launch mode", never
null
-
getLoadEnvs
public Environments getLoadEnvs(org.eclipse.emf.ecore.EObject object)
Description copied from interface:IBslPreferencesGets filteringEnvironmentsfrom property page for BSL- Specified by:
getLoadEnvsin interfaceIBslPreferences- Parameters:
object- object for getting current project, can't benull- Returns:
- current filtering
Environments, nevernull
-
getLoadEnvs
public Environments getLoadEnvs(org.eclipse.core.resources.IProject project)
Description copied from interface:IBslPreferencesGets filteringEnvironmentsfrom property page for BSL- Specified by:
getLoadEnvsin interfaceIBslPreferences- Parameters:
project- current project, can't benull- Returns:
- current filtering
Environments, nevernull
-
setLaunchMode
public boolean setLaunchMode(org.eclipse.core.resources.IProject project, int mode)Description copied from interface:IBslPreferencesSets value of environment "Launch mode"- Specified by:
setLaunchModein interfaceIBslPreferences- Parameters:
project-IProjectactual project, can't benullmode- saving value of environment "Launch mode"- Returns:
trueif new value was be set,falseotherwise
-
deleteEnvs
public void deleteEnvs(org.eclipse.core.resources.IProject project)
Description copied from interface:IBslPreferencesDeletes load environment forproject- Specified by:
deleteEnvsin interfaceIBslPreferences- Parameters:
project- actual project for deleting environment for it, can't benull
-
getTypeSystemProperties
public TypeSystemProperties getTypeSystemProperties(org.eclipse.core.resources.IProject project)
Description copied from interface:IBslPreferencesGets properties for Type System of Built-In language. SeeTypeSystemProperties- Specified by:
getTypeSystemPropertiesin interfaceIBslPreferences- Parameters:
project- actual project, can't benull- Returns:
- properties for Type System of Built-In language, never
null
-
getDocumentCommentProperties
public DocumentationCommentProperties getDocumentCommentProperties(org.eclipse.core.resources.IProject project)
Description copied from interface:IBslPreferencesGets properties for Bsl documentation comment. SeeDocumentationCommentProperties- Specified by:
getDocumentCommentPropertiesin interfaceIBslPreferences- Parameters:
project- actual project, can't benull- Returns:
- properties for Bsl documentation comment, never
null
-
-