Exemplo n.º 1
0
        public DefaultJLauncherOptions(IJProject 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);
        }
Exemplo n.º 2
0
        public DefaultJLauncher(IJProject/*!*/ project)
        {
            Utilities.ArgumentNotNull("project", project);

            _project = project;
        }
Exemplo n.º 3
0
        internal static IProjectLauncher GetLauncher(IJProject project) {
            var launchProvider = project.GetProperty(JConstants.LaunchProvider);

            IJLauncherProvider defaultLaunchProvider = null;
            foreach (var launcher in ComponentModel.GetExtensions<IJLauncherProvider>()) {
                if (launcher.Name == launchProvider) {
                    return launcher.CreateLauncher(project);
                }

                if (launcher.Name == DefaultLauncherProvider.DefaultLauncherDescription) {
                    defaultLaunchProvider = launcher;
                }
            }

            // no launcher configured, use the default one.
            Debug.Assert(defaultLaunchProvider != null);
            return (defaultLaunchProvider != null) ? defaultLaunchProvider.CreateLauncher(project) : null;
        }
Exemplo n.º 4
0
 public IJLauncherOptions GetLauncherOptions(IJProject properties)
 {
     return new DefaultJLauncherOptions(properties);
 }
Exemplo n.º 5
0
 public IProjectLauncher CreateLauncher(IJProject project)
 {
     return new DefaultJLauncher(project);
 }