How do I contribute help contexts?
Eclipseプラグイン開発での、コンテキストメニュー(ポップアップのヘルプといった方がよい)の開き方。。
拡張ポイントの指定が
<extension point="org.eclipse.help.contexts">
<contexts file="contexts.xml" plugin="org.eclipse.faq.examples">
</contexts>
</extension>
でcontexts.xmlが
<?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.contexts"?>
<contexts>
<context id="workbench_window_context">
<description>てすと各ワークベンチ・ウィンドウには 1 つ以上のパースペクティブがあり、ワークベンチ・ウィンドウはさまざまなビューとエディターで構成されています。</description>
<topic label="てすとワークベンチ" href="concepts/concepts-2.htm"/>
<topic label="てすとパースペクティブ" href="concepts/concepts-4.htm"/>
<topic label="てすとワークベンチの管理" href="tasks/tasks-1.htm"/>
</context>
</contexts>
となっているとき
String contextId = "org.eclipse.faq.examples.workbench_window_context";
WorkbenchHelp.displayHelp(contextId);
でヘルプメニューが表示されます。
コメントする