[英]How to open my cheatsheet programmaticlly in eclipse?
我建立了自己的“備忘單”。 當我如下打開“備忘單視圖”時,如何以編程方式打開它? PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("org.eclipse.ui.cheatsheets.views.CheatSheetView");
您不會像那樣打開 CheatSheatView。 而是使用org.eclipse.ui.cheatsheets.OpenCheatSheetAction
:
new OpenCheatSheetAction("cheat sheet id").run();
這將打開備忘單視圖,除非它是從TrayDialog
(或派生類)調用的,在這種情況下,它會將表單添加到對話框中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.