Example #1
0
        public void stopWatcher()
        {
            if (classpathWatcher != null)
            {
                classpathWatcher.Dispose();
                classpathWatcher = null;
            }

            if (singleFileWatcher != null)
            {
                singleFileWatcher.Dispose();
                singleFileWatcher = null;
            }

            if (project != null)
            {
                changeState(UIState.Standby);
            }
            else
            {
                changeState(UIState.Disabled);
            }

            ToggleBuildButton.ToolTipText = LocaleHelper.GetString("Label.Start");

            isRunning = false;
        }
Example #2
0
        public void startWatcher()
        {
            if (isRunning)
            {
                ErrorManager.ShowInfo(LocaleHelper.GetString("Info.WatcherWasRunning"));
                return;
            }

            changeState(UIState.Running);
            classpathWatcher = new ClasspathWatcher(Globals.MainForm.ToolStrip, project, delegate() { buildAction.Build(project, true); });
            //singleFileWatcher = new SingleFileWatcher(Globals.MainForm.ToolStrip, project.OutputPathAbsolute, delegate() { OpenSwf(); });

            buildAction.Build(project, true);

            ToggleBuildButton.ToolTipText = LocaleHelper.GetString("Label.Stop");

            isRunning = true;
        }