Class BslPreferences

    • Constructor Detail

      • BslPreferences

        public BslPreferences()
    • Method Detail

      • 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
      • 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
      • 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