如何在Eclipse中打开我的作弊表编程?

发布于 2025-02-03 06:06:21 字数 196 浏览 2 评论 0原文

我建造了自己的“备忘单”。当我打开“备忘单查看”时,如何以编程方式打开它? platformui.getWorkBench()。getActiveWorkBenchWindow()。getActivePage()。showview(“ org.eclipse.ui.cheatsheets.views.views.cheatsheetview”);

I built my own 'cheat sheet'. How to open it programmatically when I open 'Cheat Sheet View' as follows? PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("org.eclipse.ui.cheatsheets.views.CheatSheetView");

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花落人断肠 2025-02-10 06:06:21

您不会像这样打开作弊景观。相反

new OpenCheatSheetAction("cheat sheet id").run();

​将将表格添加到对话框中。

You do not open the CheatSheatView like that. Instead use org.eclipse.ui.cheatsheets.OpenCheatSheetAction:

new OpenCheatSheetAction("cheat sheet id").run();

This will open the cheat sheet view except if it is called from a TrayDialog (or derived class) in which case it will add the sheet to the dialog.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文