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 String
CLIENT_SERVER
static String
DEEP_ANALYSIS_PROPERTIES
static String
DOCUMENTATION_COMMENT_PROPERTIES
static String
ENV_LAUNCH_MODE_INDEX
static String
MANAGED_ENVIRONMENTS_NODE
static String
MOBILE_ENVIRONMENTS_NODE
static String
RUNTIME_LAUNCH_NODE
static String
TYPE_SYSTEM_PROPERTIES
-
Constructor Summary
Constructors Constructor Description BslPreferences()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteEnvs(org.eclipse.core.resources.IProject project)
Deletes load environment forproject
static boolean
detectIsClientServer(org.eclipse.core.resources.IProject project)
Loads selectedEnvironment
from property page for projectstatic boolean
detectIsClientServer(org.eclipse.emf.ecore.EObject object)
Loads selectedEnvironment
from property page for projectDocumentationCommentProperties
getDocumentCommentProperties(org.eclipse.core.resources.IProject project)
Gets properties for Bsl documentation comment.IBslPreferences.EnvironmentLaunchMode
getEnvLaunchMode(org.eclipse.core.resources.IProject project)
Gets saving value of environment "Default launch mode"Environments
getLoadEnvs(org.eclipse.core.resources.IProject project)
Gets filteringEnvironments
from property page for BSLEnvironments
getLoadEnvs(org.eclipse.emf.ecore.EObject object)
Gets filteringEnvironments
from property page for BSLTypeSystemProperties
getTypeSystemProperties(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 selectedEnvironment
from property page for projectboolean
setLaunchMode(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 selectedEnvironment
from property page for project- Parameters:
project
- -IProject
actual project, can't benull
- Returns:
true
if this client-server,false
if it's file-server
-
detectIsClientServer
public static boolean detectIsClientServer(org.eclipse.emf.ecore.EObject object)
Loads selectedEnvironment
from property page for project- Parameters:
project
- -EObject
for determinating the actualIProject
, can't benull
- Returns:
true
if this client-server,false
if it's file-server
-
loadEnv
public Map<Environment,Boolean> loadEnv(org.eclipse.core.resources.IProject project, IBslPreferences.EnvironmentLaunchMode mode)
Description copied from interface:IBslPreferences
Loads selectedEnvironment
from property page for project- Specified by:
loadEnv
in interfaceIBslPreferences
- Parameters:
project
- -IProject
actual project, can't benull
mode
- 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:IBslPreferences
Gets saving value of environment "Default launch mode"- Specified by:
getEnvLaunchMode
in interfaceIBslPreferences
- Parameters:
project
-IProject
actual 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:IBslPreferences
Gets filteringEnvironments
from property page for BSL- Specified by:
getLoadEnvs
in 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:IBslPreferences
Gets filteringEnvironments
from property page for BSL- Specified by:
getLoadEnvs
in 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:IBslPreferences
Sets value of environment "Launch mode"- Specified by:
setLaunchMode
in interfaceIBslPreferences
- Parameters:
project
-IProject
actual project, can't benull
mode
- saving value of environment "Launch mode"- Returns:
true
if new value was be set,false
otherwise
-
deleteEnvs
public void deleteEnvs(org.eclipse.core.resources.IProject project)
Description copied from interface:IBslPreferences
Deletes load environment forproject
- Specified by:
deleteEnvs
in 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:IBslPreferences
Gets properties for Type System of Built-In language. SeeTypeSystemProperties
- Specified by:
getTypeSystemProperties
in 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:IBslPreferences
Gets properties for Bsl documentation comment. SeeDocumentationCommentProperties
- Specified by:
getDocumentCommentProperties
in interfaceIBslPreferences
- Parameters:
project
- actual project, can't benull
- Returns:
- properties for Bsl documentation comment, never
null
-
-