Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whether to return MainWindow instead of Window at Zotero.getMainWindow()? #48

Open
volatile-static opened this issue Sep 26, 2024 · 1 comment
Assignees

Comments

@volatile-static
Copy link
Collaborator

我添加了一个接口MainWindow用来表示在zotero环境下的主窗口对象,打算依此修改Zotero.getMainWindow方法的返回类型。
但现在有两点困惑:

  1. 我在新增接口MainWindow的实现方式是继承Window并手动补充,不知能否从全局继承所有内容?
  2. 除了getMainWindow之外,还有可以用到MainWindow的地方吗?
@windingwind
Copy link
Owner

感觉1应该可以,还没试过
2的话,我猜没有

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants