Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » activeFocusControlId with detached view
activeFocusControlId with detached view [message #325764] Tue, 26 February 2008 15:13 Go to next message
Marco  Lehmann-Mörz is currently offline Marco Lehmann-MörzFriend
Messages: 53
Registered: July 2009
Member
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

TIA,
Marco
Re: activeFocusControlId with detached view [message #325773 is a reply to message #325764] Tue, 26 February 2008 15:50 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


Re: activeFocusControlId with detached view [message #325779 is a reply to message #325773] Tue, 26 February 2008 19:48 Go to previous messageGo to next message
Marco  Lehmann-Mörz is currently offline Marco Lehmann-MörzFriend
Messages: 53
Registered: July 2009
Member
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
Re: activeFocusControlId with detached view [message #325801 is a reply to message #325779] Wed, 27 February 2008 14:03 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Marco Lehmann wrote:
>
> 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?


No, 3.3.2 is pretty well closed (and should be available by the end of Feb).

If your control has focus but the FocusControlSourceProvider is not
providing that variable that's a bug (of some kind). Please open a bug
report at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI&short_desc=[Services]

It can't be fixed in 3.3.2 but it should be fixed in 3.4


Later,
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


Previous Topic:How to bring to top without activating?
Next Topic:Adding a (text editor) page
Goto Forum:
  


Current Time: Sun Dec 22 06:24:32 GMT 2024

Powered by FUDForum. Page generated in 0.03464 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top