Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 private void UpdateStackUI()
 {
     m_CurrentFrame = 0;
     Frame[] frames = m_FlashInterface.GetFrames();
     PanelsHelper.stackframeUI.AddFrames(frames);
 }
Ejemplo n.º 2
0
        private void Manager_OnMouseHover(ScintillaControl sci, Int32 position)
        {
            DebuggerManager debugManager   = PluginMain.debugManager;
            FlashInterface  flashInterface = debugManager.FlashInterface;

            if (!PluginBase.MainForm.EditorMenu.Visible && flashInterface != null && flashInterface.isDebuggerStarted && flashInterface.isDebuggerSuspended)
            {
                if (debugManager.CurrentLocation != null && debugManager.CurrentLocation.getFile() != null)
                {
                    String localPath = debugManager.GetLocalPath(debugManager.CurrentLocation.getFile());
                    if (localPath == null || localPath != PluginBase.MainForm.CurrentDocument.FileName)
                    {
                        return;
                    }
                }
                else
                {
                    return;
                }
                Point     dataTipPoint = Control.MousePosition;
                Rectangle rect         = new Rectangle(m_ToolTip.Location, m_ToolTip.Size);
                if (m_ToolTip.Visible && rect.Contains(dataTipPoint))
                {
                    return;
                }
                position = sci.WordEndPosition(position, true);
                String leftword = GetWordAtPosition(sci, position);
                if (leftword != String.Empty)
                {
                    try
                    {
                        IASTBuilder b   = new ASTBuilder(false);
                        ValueExp    exp = b.parse(new java.io.StringReader(leftword));
                        var         ctx = new ExpressionContext(flashInterface.Session, flashInterface.GetFrames()[debugManager.CurrentFrame]);
                        var         obj = exp.evaluate(ctx);
                        if ((Variable)obj != null)
                        {
                            Show(dataTipPoint, (Variable)obj, leftword);
                        }
                    }
                    catch (Exception) {}
                }
            }
        }