Changeset 7018
- Timestamp:
- 11/17/11 16:36:07 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarAllowedChildSymbolsControl.cs ¶
r6999 r7018 194 194 var node = visualNode.SymbolicExpressionTreeNode; 195 195 var root = symbolicExpressionTreeChart.Tree.Root; 196 if (root.Symbol is ProgramRootSymbol) return;197 196 if (node == root || node.Parent == root) e.Effect = DragDropEffects.Copy; 198 197 } -
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarEditorView.cs ¶
r6803 r7018 129 129 private void UpdateChildTreeNodes(TreeNodeCollection collection, IEnumerable<ISymbol> symbols) { 130 130 foreach (ISymbol symbol in symbols) { 131 if (symbol is ProgramRootSymbol) continue; 132 if (symbol is Defun) continue; 133 131 134 TreeNode node = collection.Cast<TreeNode>().Where(n => n.Tag == symbol).FirstOrDefault(); 132 135 if (node == null) {
Note: See TracChangeset
for help on using the changeset viewer.