Class BslPreferences

java.lang.Object
com._1c.g5.v8.dt.bsl.validation.BslPreferences
All Implemented Interfaces:
IBslPreferences

public class BslPreferences extends Object implements IBslPreferences
Saves and Loads Environment from property page.
Also provider properties for ITypeSystem.
  • Field Details

  • Constructor Details

    • BslPreferences

      public BslPreferences()
  • Method Details

    • detectIsClientServer

      public static boolean detectIsClientServer(org.eclipse.core.resources.IProject project)
      Loads selected Environment from property page for project
      Parameters:
      project - - IProject actual project, can't be null
      Returns:
      true if this client-server, false if it's file-server
    • detectIsClientServer

      public static boolean detectIsClientServer(org.eclipse.emf.ecore.EObject object)
      Loads selected Environment from property page for project
      Parameters:
      project - - EObject for determinating the actual IProject, can't be null
      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 selected Environment from property page for project
      Specified by:
      loadEnv in interface IBslPreferences
      Parameters:
      project - - IProject actual project, can't be null
      mode - actual environment "Default run mode", can't be null
      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 interface IBslPreferences
      Parameters:
      project - IProject actual project, can't be null
      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 filtering Environments from property page for BSL
      Specified by:
      getLoadEnvs in interface IBslPreferences
      Parameters:
      object - object for getting current project, can't be null
      Returns:
      current filtering Environments, never null
    • getLoadEnvs

      public Environments getLoadEnvs(org.eclipse.core.resources.IProject project)
      Description copied from interface: IBslPreferences
      Gets filtering Environments from property page for BSL
      Specified by:
      getLoadEnvs in interface IBslPreferences
      Parameters:
      project - current project, can't be null
      Returns:
      current filtering Environments, never null
    • 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 interface IBslPreferences
      Parameters:
      project - IProject actual project, can't be null
      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 for project
      Specified by:
      deleteEnvs in interface IBslPreferences
      Parameters:
      project - actual project for deleting environment for it, can't be null
    • getTypeSystemProperties

      public TypeSystemProperties getTypeSystemProperties(org.eclipse.core.resources.IProject project)
      Description copied from interface: IBslPreferences
      Gets properties for Type System of Built-In language. See TypeSystemProperties
      Specified by:
      getTypeSystemProperties in interface IBslPreferences
      Parameters:
      project - actual project, can't be null
      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. See DocumentationCommentProperties
      Specified by:
      getDocumentCommentProperties in interface IBslPreferences
      Parameters:
      project - actual project, can't be null
      Returns:
      properties for Bsl documentation comment, never null