示例#1
0
        private bool ShowEditor(KeyValuePair <IInternalPluginHost, ExportLifetimeContext <IEditor> > entry)
        {
            var editor     = entry.Value.Value;
            var editorNode = entry.Key as INode;

            editor.MoveTo(FMoveToLine, FMoveToColumn);

            FHDEHost.ShowGUI(FindNodeFromInternal(editorNode));
            return(false);
        }
示例#2
0
 private void OpenPatch(INode2 node)
 {
     if (node == null)
     {
         FHDEHost.ShowEditor(FActivePatchNode.Parent);
     }
     else if (node.HasPatch || node.HasCode)
     {
         FHDEHost.ShowEditor(node);
     }
     else if (node.HasGUI)
     {
         FHDEHost.ShowGUI(node);
     }
     //else
     //    OpenParentAndSelectNode(node);
 }