Community
Participate
Working Groups
In the following doc page, the Platform based property variable is defined as Doc Page: Platform Plug-in Developer Guide > Programmer's Guide > User assistance support > Dynamic content -> Filters <with variable="platform"> <test property="org.eclipse.core.runtime.isBundleInstalled" args="x.y.z"/> </with> This did not work for me, i guess the "platform" variable must be fully qualified like "org.eclipse.core.runtime.Platform". With this correction the variable definition should read as <with variable="org.eclipse.core.runtime.Platform"> <test property="org.eclipse.core.runtime.isBundleInstalled" args="x.y.z"/> </with> I took a day to figure this out, if this is indeed a doc defect, it is worth fixing it to save developer's time. Thanks.
The doc is correct. I also verified it by replacing the existing enablement expression in /org.eclipse.jdt.doc.isv/toc.xml with: <enablement> <with variable="platform"> <test property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.jdt.ui"/> </with> </enablement> and it works as expected ('JDT Plug-in Developer Guide' is shown). Then I changed the ID to some non-existent bundle and the guide no longer appeared. If you still see the problem using http://download.eclipse.org/eclipse/downloads/drops4/I20130313-2000/ or later, then please reopen this bug with self-contained example that demonstrates the bug. NOTE: For the "workbench" variable and properties you actually need to run a workbench and 'org.eclipse.help.ui' must be part of your install.