public JavaUnconfiguredEditor(Collection<ITextBuffer> subjectBuffers, IWpfTextView textView, ServerProxyManager mgr, EclipseWorkspace workspace)
            : base(subjectBuffers, textView, workspace)
        {
            this.JavaPkgServerManager = mgr;

            if (workspace == null)
                Telemetry.Client.Get().TrackEvent("App.EditorOpenUnconfigured.EclipseNotFound");
            else
                Telemetry.Client.Get().TrackEvent("App.EditorOpenUnconfigured.WorkspaceNotFound");

            if (Helpers.VSHelpers.IsBuildInProgress())
            {
                BuildTicker = new Timer();
                BuildTicker.Interval = 1000;
                BuildTicker.Elapsed += BuildTicker_Elapsed;
                BuildTicker.Enabled = true;
            }
        }
Exemplo n.º 2
0
        public JavaUnconfiguredEditor(Collection <ITextBuffer> subjectBuffers, IWpfTextView textView, ServerProxyManager mgr, EclipseWorkspace workspace)
            : base(subjectBuffers, textView, workspace)
        {
            this.JavaPkgServerManager = mgr;

            if (workspace == null)
            {
                Telemetry.Client.Get().TrackEvent("App.EditorOpenUnconfigured.EclipseNotFound");
            }
            else
            {
                Telemetry.Client.Get().TrackEvent("App.EditorOpenUnconfigured.WorkspaceNotFound");
            }

            if (Helpers.VSHelpers.IsBuildInProgress())
            {
                BuildTicker          = new Timer();
                BuildTicker.Interval = 1000;
                BuildTicker.Elapsed += BuildTicker_Elapsed;
                BuildTicker.Enabled  = true;
            }
        }