【发布时间】:2015-07-01 17:38:07
【问题描述】:
我有一个navigation plugin,我想扩展它以支持上下文导航。除了 NavigationOptions 实例之外,我拥有所需的一切。在我的INavigateFromHereProvider 中,我使用IDataContext 调用,因此可以使用NavigationOptions.FromDataContext 方法从中创建NavigationOptions。伟大的。
在我的上下文操作中,我不会被IDataContext 调用,而是在构建过程中得到ICSharpContextActionDataProvider。我可以从中获取我的IDeclaredElement 以作为我导航决策的基础,但我不确定如何创建我的NavigationOptions 实例。感觉我应该使用NavigationOptions.FromWindowContext,但我似乎需要PopupWindowContextSource,我不知道从哪里获得其中之一。
那么我在哪里可以获得相关的PopupWindowContextSource 来创建我的NavigationOptions?
【问题讨论】:
标签: c# resharper resharper-plugins resharper-8.2