コード例 #1
0
 public UnityEventFunctionQuickDocPresenter(UnityEventFunction eventFunction, IClrDeclaredElement element,
                                            QuickDocTypeMemberProvider quickDocTypeMemberProvider,
                                            ITheming theming, HelpSystem helpSystem)
     : this(eventFunction, null, element, quickDocTypeMemberProvider, theming, helpSystem)
 {
     myQuickDocTypeMemberProvider = quickDocTypeMemberProvider;
 }
コード例 #2
0
    public TypeInterfaceToolWindowRegistrar(Lifetime lifetime,
                                    ToolWindowManager toolWindowManager,
                                    IShellLocks locks,
                                    ISettingsStore settingsStore,
                                    IActionManager actionManager,
                                    IActionBarManager actionBarManager,
                                    IShortcutManager shortcutManager,
                                    TypeInterfaceToolWindowDescriptor toolWindowDescriptor,
                                    ITheming theming,
                                    IThemedIconManager themedIconManager, IColorThemeManager colorThemeManager)
    {
      myLifetime = lifetime;
      myLocks = locks;
      mySettingsStore = settingsStore;
      myActionBarManager = actionBarManager;
      myTheming = theming;
      myThemedIconManager = themedIconManager;
      myColorThemeManager = colorThemeManager;

      myToolWindowClass = toolWindowManager.Classes[toolWindowDescriptor];
      myToolWindowClass.RegisterEmptyContent(
        lifetime,
        lt =>
          {
            var emptyLabel = new RichTextLabel { BackColor = SystemColors.Control, Dock = DockStyle.Fill };
            emptyLabel.RichTextBlock.Add(new RichText("No hierarchies open", new TextStyle(FontStyle.Bold)));
            emptyLabel.RichTextBlock.Add(
              new RichText("Use " + actionManager.GetHowToExecuteAction(shortcutManager, typeof(BrowseTypeHierarchyAction)), TextStyle.Default));
            emptyLabel.RichTextBlock.Add(new RichText("on a type to see hierarchy", TextStyle.Default));
            emptyLabel.RichTextBlock.Parameters = new RichTextBlockParameters(8, ContentAlignment.MiddleCenter);
            return emptyLabel.BindToLifetime(lt);
          });
    }
コード例 #3
0
 public UnityMessageQuickDocPresenter(UnityMessage message, IClrDeclaredElement element,
                                      QuickDocTypeMemberProvider quickDocTypeMemberProvider,
                                      ITheming theming, HelpSystem helpSystem)
     : this(message, null, element, quickDocTypeMemberProvider, theming, helpSystem)
 {
     myQuickDocTypeMemberProvider = quickDocTypeMemberProvider;
 }
コード例 #4
0
        public TypeInterfaceToolWindowRegistrar(Lifetime lifetime,
                                                ToolWindowManager toolWindowManager,
                                                IShellLocks locks,
                                                ISettingsStore settingsStore,
                                                IActionManager actionManager,
                                                IActionBarManager actionBarManager,
                                                IShortcutManager shortcutManager,
                                                TypeInterfaceToolWindowDescriptor toolWindowDescriptor,
                                                ITheming theming,
                                                IThemedIconManager themedIconManager, IColorThemeManager colorThemeManager)
        {
            myLifetime          = lifetime;
            myLocks             = locks;
            mySettingsStore     = settingsStore;
            myActionBarManager  = actionBarManager;
            myTheming           = theming;
            myThemedIconManager = themedIconManager;
            myColorThemeManager = colorThemeManager;

            myToolWindowClass = toolWindowManager.Classes[toolWindowDescriptor];
            myToolWindowClass.RegisterEmptyContent(
                lifetime,
                lt =>
            {
                var emptyLabel = new RichTextLabel {
                    BackColor = SystemColors.Control, Dock = DockStyle.Fill
                };
                emptyLabel.RichTextBlock.Add(new RichText("No hierarchies open", new TextStyle(FontStyle.Bold)));
                emptyLabel.RichTextBlock.Add(
                    new RichText("Use " + actionManager.GetHowToExecuteAction(shortcutManager, typeof(BrowseTypeHierarchyAction)), TextStyle.Default));
                emptyLabel.RichTextBlock.Add(new RichText("on a type to see hierarchy", TextStyle.Default));
                emptyLabel.RichTextBlock.Parameters = new RichTextBlockParameters(8, ContentAlignment.MiddleCenter);
                return(emptyLabel.BindToLifetime(lt));
            });
        }
コード例 #5
0
 public UnityEventFunctionQuickDocPresenter(UnityEventFunction eventFunction, IClrDeclaredElement element,
                                            QuickDocTypeMemberProvider quickDocTypeMemberProvider,
                                            ITheming theming, HelpSystem helpSystem)
     : this(eventFunction, null, element, quickDocTypeMemberProvider, theming, helpSystem)
 {
     myQuickDocTypeMemberProvider = quickDocTypeMemberProvider;
 }
コード例 #6
0
 public UnityEventFunctionQuickDocProvider(ISolution solution, UnityApi unityApi,
                                           DocumentManager documentManager, QuickDocTypeMemberProvider quickDocTypeMemberProvider,
                                           HelpSystem helpSystem, ITheming theming)
 {
     mySolution                   = solution;
     myUnityApi                   = unityApi;
     myDocumentManager            = documentManager;
     myQuickDocTypeMemberProvider = quickDocTypeMemberProvider;
     myHelpSystem                 = helpSystem;
     myTheming = theming;
 }
コード例 #7
0
 public UnityEventFunctionQuickDocProvider(ISolution solution, UnityApi unityApi,
                                           DocumentManager documentManager, QuickDocTypeMemberProvider quickDocTypeMemberProvider,
                                           HelpSystem helpSystem, ITheming theming)
 {
     mySolution = solution;
     myUnityApi = unityApi;
     myDocumentManager = documentManager;
     myQuickDocTypeMemberProvider = quickDocTypeMemberProvider;
     myHelpSystem = helpSystem;
     myTheming = theming;
 }
コード例 #8
0
 public UnityEventFunctionQuickDocPresenter(UnityEventFunction eventFunction, string parameterName,
                                            IClrDeclaredElement element,
                                            QuickDocTypeMemberProvider quickDocTypeMemberProvider,
                                            ITheming theming, HelpSystem helpSystem)
 {
     myEventFunction = eventFunction;
     myParameterName = parameterName;
     myQuickDocTypeMemberProvider = quickDocTypeMemberProvider;
     myTheming    = theming;
     myHelpSystem = helpSystem;
     myEnvoy      = new DeclaredElementEnvoy <IClrDeclaredElement>(element);
 }
コード例 #9
0
 public UnityEventFunctionQuickDocPresenter(UnityEventFunction eventFunction, string parameterName,
                                            IClrDeclaredElement element,
                                            QuickDocTypeMemberProvider quickDocTypeMemberProvider,
                                            ITheming theming, HelpSystem helpSystem)
 {
     myEventFunction = eventFunction;
     myParameterName = parameterName;
     myQuickDocTypeMemberProvider = quickDocTypeMemberProvider;
     myTheming = theming;
     myHelpSystem = helpSystem;
     myEnvoy = new DeclaredElementEnvoy<IClrDeclaredElement>(element);
 }
コード例 #10
0
        public PresentationAssistantWindowOwner(Lifetime lifetime, IThreading threading,
                                                PresentationAssistantPopupWindowContext context, PopupWindowManager popupWindowManager, ITheming theming,
                                                IWpfMainWindow mainWindow)
        {
            this.threading          = threading;
            this.context            = context;
            this.popupWindowManager = popupWindowManager;
            this.theming            = theming;
            this.mainWindow         = mainWindow;

            Enabled = new Property <bool>(lifetime, "PresentationAssistantWindow::Enabled");
            Enabled.WhenTrue(lifetime, EnableShortcuts);
        }