Test whether content is displayed in a help view? [message #472326] |
Fri, 15 February 2008 13:29  |
Eclipse User |
|
|
|
I would like to be able to determine, from within an xhtml file,
whether the file is being displayed in the Eclipse help view or
if it is in a browser. I believe something like the following
ought to work, if placed in the xhtml file:
<div>
Some content...
<enablement>
<with variable="workbench">
<test property="i.am.a.help.view" value="yes.i.am"/>
</with>
</enablement>
</div>
What I have been unable to determine, despite a fair amount of
searching through the docs, are the values I would plug in for
"i.am.a.help.view" and "yes.i.am".
Is this a case where I need a custom property tester, or is there
some way to determine whether I'm in the help view using existing
properties and values?
Thanks for any help,
Doug Dirks
|
|
|
|
|
|
|
Re: Test whether content is displayed in a help view? [message #609944 is a reply to message #472328] |
Tue, 19 February 2008 19:19  |
Eclipse User |
|
|
|
Originally posted by: ddirks.ittvis.com
Thanks, Chris. With that insight I can solve my current problem
using some JavaScript (to detect whether I'm in the Help View)
and CSS (to control what's displayed).
I can't tell whether it would be generally useful to have a
<enablement> test for this. That would certainly make it easier
to control the displayed content based on the view type, but
maybe that's a fringe case. Do you (or anyone else out there)
think it would be worth filing as a feature request?
Thanks again,
Doug
|
|
|
|
Powered by
FUDForum. Page generated in 0.16860 seconds