public override void DoubleClickHandler() { base.DoubleClickHandler(); Namable element = Item.GetReference(); if (element != null) { MainWindow mainWindow = GuiUtils.MdiWindow; if (mainWindow.DataDictionaryWindow != null) { if (mainWindow.DataDictionaryWindow.TreeView.Select(element) != null) { mainWindow.DataDictionaryWindow.Focus(); } } if (mainWindow.SpecificationWindow != null) { if (mainWindow.SpecificationWindow.TreeView.Select(element) != null) { mainWindow.SpecificationWindow.Focus(); } } if (mainWindow.TestWindow != null) { if (mainWindow.TestWindow.TreeView.Select(element) != null) { mainWindow.TestWindow.Focus(); } } } }
public override void visit(Generated.Namable obj, bool visitSubNodes) { Namable namable = (Namable)obj; namable.ClearFullName(); base.visit(obj, visitSubNodes); }
/// <summary> /// Clears the cached FullName for all namables /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Generated.Namable obj, bool visitSubNodes) { Namable namable = (Namable)obj; namable.ClearFullName(); Variable variable = namable as Variable; if (variable != null) { variable.Value = null; } base.visit(obj, visitSubNodes); }
/// <summary> /// Copies information from an element /// </summary> /// <param name="aNamable">Element to be copied</param> public void CopyFrom(Namable aNamable) { Name = aNamable.Name; ShortcutName = aNamable.FullName; }