public TypeInterfaceDescriptor(ITypeElement typeElement, bool instanceOnly) : base(typeElement.GetSolution())
    {
      AutoExpandSingleChild = true;
      myInstanceOnly = instanceOnly;

      // We use standard presenter, but emphasize root element using adorements
      myPresenter = new TypeInterfacePresenter
                      {
                        DrawElementExtensions = true,
                        ShowOccurenceCount = false,
                        PostfixTypeQualification = true
                      };
      myPresenter.PresentAdorements += PresentAdorements;

      // Wrap typeElement with an envoy, so it can survive code changes
      myTypeElementEnvoy = new DeclaredElementEnvoy<ITypeElement>(typeElement);
      MakeModel();
    }
        public TypeInterfaceDescriptor(ITypeElement typeElement, bool instanceOnly) : base(typeElement.GetSolution())
        {
            AutoExpandSingleChild = true;
            myInstanceOnly        = instanceOnly;

            // We use standard presenter, but emphasize root element using adorements
            myPresenter = new TypeInterfacePresenter
            {
                DrawElementExtensions    = true,
                ShowOccurenceCount       = false,
                PostfixTypeQualification = true
            };
            myPresenter.PresentAdorements += PresentAdorements;

            // Wrap typeElement with an envoy, so it can survive code changes
            myTypeElementEnvoy = new DeclaredElementEnvoy <ITypeElement>(typeElement);
            MakeModel();
        }
Exemplo n.º 3
0
        public TypeInterfaceDescriptor(ITypeElement typeElement, bool instanceOnly, ISolution solution, IUIApplication uiApplication, ITooltipManager tooltipManager, IWindowsHookManager windowsHookManager, IActionManager actionManager)
            : base(solution, uiApplication, tooltipManager, windowsHookManager, actionManager)
        {
            AutoExpandSingleChild = true;
            myInstanceOnly        = instanceOnly;

            // We use standard presenter, but emphasize root element using adorements
            myPresenter = new TypeInterfacePresenter
            {
                DrawElementExtensions    = true,
                ShowOccurenceCount       = false,
                PostfixTypeQualification = true
            };
            myPresenter.PresentAdorements += PresentAdorements;

            // Wrap typeElement with an envoy, so it can survive code changes
            myTypeElementEnvoy = new DeclaredElementEnvoy <ITypeElement>(typeElement);
            MakeModel();
        }