public CommandTargetToOleShim(ITextView textView, ICommandTarget commandTarget)
 {
     _commandTarget = commandTarget;
     if (textView != null)
     {
         _variantStacks = CommandTargetToOleShimVariantStacks.EnsureConnected(textView);
     }
 }
Exemple #2
0
 public OleToCommandTargetShim(ITextView textView, IOleCommandTarget oleTarget)
 {
     OleTarget      = oleTarget;
     _variantStacks = CommandTargetToOleShimVariantStacks.EnsureConnected(textView);
 }