Example #1
0
 private void OnNodeAdded(Graph.Nodes.NodeModel obj)
 {
     if (!NotificationTracker.ContainsKey(CurrentWorkspace.Guid) &&
         GraphPythonDependencies.IsIronPythonNode(obj))
     {
         LogIronPythonNotification();
     }
 }
Example #2
0
        private void OnNodeRemoved(Graph.Nodes.NodeModel obj)
        {
            if (!(obj is PythonNodeBase pythonNode))
            {
                return;
            }

            UnSubscribePythonNodeEvents(pythonNode);
        }
Example #3
0
        private void OnNodeAdded(Graph.Nodes.NodeModel obj)
        {
            if (!NotificationTracker.ContainsKey(CurrentWorkspace.Guid) &&
                GraphPythonDependencies.IsIronPythonNode(obj))
            {
                LogIronPythonNotification();
            }

            if (obj is PythonNodeBase)
            {
                SubscribeToPythonNodeEvents(obj as PythonNodeBase);
            }
        }
Example #4
0
        private void OnNodeRemoved(Graph.Nodes.NodeModel node)
        {
            UnsubscribeNodeEvents(node);
            EvaluateGraphRules(node, NODE_REMOVED_PROPERTY);

            var nodeRules = LinterRules.
                            Where(x => x is NodeLinterRule).
                            Cast <NodeLinterRule>().
                            ToList();

            if (nodeRules is null)
            {
                return;
            }

            foreach (var rule in nodeRules)
            {
                var result = new NodeRuleEvaluationResult(rule.Id, Linting.Interfaces.RuleEvaluationStatusEnum.Passed, rule.SeverityCode, node.GUID.ToString());
                rule.OnRuleEvaluated(result);
            }
        }
Example #5
0
 private void CurrentDynamoModel_RequestCancelActiveStateForNode(Graph.Nodes.NodeModel node)
 {
     requestCancelActiveStateForNode = true;
 }