[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: activeFocusControlId with detached view

Paul Webster schrieb:
Marco Lehmann wrote:
Hi all,

there seems to be no activeFocusControlId when a view has been detached.
The <activeWhen> expression for my handler looks like

<activeWhen>
    <and>
        <with variable="activeFocusControlId">
            <equals value="graphicalViewer">
            </equals>
        </with>
    <with variable="selection">
            <count value="1">
            </count>
            <iterate>
                <adapt type="MyType">
                </adapt>
            </iterate>
        </with>
    </and>
</activeWhen>

If the view is attached it works like expected.

This might be related to

https://bugs.eclipse.org/bugs/show_bug.cgi?id=212292


One way to test that would be to pick up a version of 3.4 M5 and see if you still have the problem, or simply remove your 'with variable="selection"' clause and see if your handler becomes active when the focus control is active.

PW




Thanks for your quick answer.

We are developing against a target platform, which is something between 3.3.0 and 3.3.1.
I debugged the WithExpression and the activeFocusControlId was null. I will try to setup a target platform with 3.4M5, but this may take awhile. Are there any plans to fix the bug mentioned above and this one in 3.3.2?


TIA,
Marco