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

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


-- Paul Webster http://wiki.eclipse.org/Platform_Command_Framework http://wiki.eclipse.org/Command_Core_Expressions http://wiki.eclipse.org/Menu_Contributions http://wiki.eclipse.org/Menus_Extension_Mapping http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm