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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.bsl.common.IBslPreferences
IBslPreferences.EnvironmentLaunchMode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 projectgetDocumentCommentProperties
(org.eclipse.core.resources.IProject project) Gets properties for Bsl documentation comment.getEnvLaunchMode
(org.eclipse.core.resources.IProject project) Gets saving value of environment "Default launch mode"getLoadEnvs
(org.eclipse.core.resources.IProject project) Gets filteringEnvironments
from property page for BSLgetLoadEnvs
(org.eclipse.emf.ecore.EObject object) Gets filteringEnvironments
from property page for BSLgetTypeSystemProperties
(org.eclipse.core.resources.IProject project) Gets properties for Type System of Built-In language.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 Details
-
MANAGED_ENVIRONMENTS_NODE
- See Also:
-
MOBILE_ENVIRONMENTS_NODE
- See Also:
-
RUNTIME_LAUNCH_NODE
- See Also:
-
CLIENT_SERVER
- See Also:
-
ENV_LAUNCH_MODE_INDEX
- See Also:
-
TYPE_SYSTEM_PROPERTIES
- See Also:
-
DEEP_ANALYSIS_PROPERTIES
- See Also:
-
DOCUMENTATION_COMMENT_PROPERTIES
- See Also:
-
-
Constructor Details
-
BslPreferences
public BslPreferences()
-
-
Method Details
-
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
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
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
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
-