Programmatically invoking a cheat sheet [message #329412] |
Mon, 23 June 2008 10:43  |
Eclipse User |
|
|
|
I'm trying to display a certain cheat sheet as one of the tasks for a
pop-up action. The org.eclipse.ui.cheatsheet.OpenCheatSheetAction seems
to be what I need. But I'm not sure how to invoke it.
I figured it should be run asynchronously from my action-delegate so I
wrapped its invocation in a Job class invocation. The code in the job is:
String cheatSheetId = "com.myplugin.cheatsheet";
OpenCheatSheetAction action = new OpenCheatSheetAction(cheatSheetId);
action.run();
return Status.OK_STATUS;
But this yields me a NullPointerException:
!ENTRY org.eclipse.core.jobs 4 2 2008-06-23 07:22:29.686
!MESSAGE An internal error occurred during: "CheatSheetJob".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.ui.cheatsheets.OpenCheatSheetAction.run(OpenChea tSheetAction.java:87)
at
treewizard.popup.actions.PopupWizard$CheatSheetJob.run(Popup Wizard.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Can someone point me into the proper direction for such an invocation.
Perhaps Jobs are not the way to go here.
- Paul
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02916 seconds