public DefaultLuaLauncherOptions(ILuaProject properties)
        {
            _properties = properties;
            InitializeComponent();
            const string searchPathHelp = "Specifies additional directories which are added to sys.path for making libraries available for importing.";
            const string argumentsHelp  = "Specifies arguments which are passed to the script and available via sys.argv.";
            const string interpArgsHelp = "Specifies arguments which alter how the interpreter is started (for example, -O to generate optimized byte code).";
            const string interpPathHelp = "Overrides the interpreter executable which is used for launching the project.";

            _toolTip.SetToolTip(_searchPathLabel, searchPathHelp);
            _toolTip.SetToolTip(_searchPaths, searchPathHelp);

            _toolTip.SetToolTip(_arguments, argumentsHelp);
            _toolTip.SetToolTip(_argumentsLabel, argumentsHelp);

            _toolTip.SetToolTip(_interpArgsLabel, interpArgsHelp);
            _toolTip.SetToolTip(_interpArgs, interpArgsHelp);

            _toolTip.SetToolTip(_interpreterPath, interpPathHelp);
            _toolTip.SetToolTip(_interpreterPathLabel, interpPathHelp);

#if DEV11_OR_LATER
            _mixedMode.Visible = true;
#endif
        }
Beispiel #2
0
        /// <summary>
        /// Returns a sequence of absolute search paths for the provided project.
        /// </summary>
        public static IEnumerable <string> GetSearchPaths(this ILuaProject project)
        {
            var paths = project.GetProperty(CommonConstants.SearchPath);

            if (!string.IsNullOrEmpty(paths))
            {
                var seen = new HashSet <string>();
                foreach (var path in paths.Split(';'))
                {
                    if (string.IsNullOrEmpty(path))
                    {
                        continue;
                    }

                    var absPath = CommonUtils.GetAbsoluteFilePath(project.ProjectDirectory, path);
                    if (seen.Add(absPath))
                    {
                        yield return(absPath);
                    }
                }
            }
        }
 public IProjectLauncher CreateLauncher(ILuaProject project)
 {
     return(new DefaultLuaLauncher(project));
 }
 public ILuaLauncherOptions GetLauncherOptions(ILuaProject properties)
 {
     return(new DefaultLuaLauncherOptions(properties));
 }
Beispiel #5
0
        public DefaultLuaLauncher(ILuaProject /*!*/ project)
        {
            Utilities.ArgumentNotNull("project", project);

            _project = project;
        }
Beispiel #6
0
 internal static IProjectLauncher GetLauncher(ILuaProject project)
 {
     return(new DefaultLuaLauncher(project));
 }