Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Command FrameWork- loosing popup menus when I detach window
Command FrameWork- loosing popup menus when I detach window [message #474128] Tue, 08 July 2008 17:17 Go to next message
mowry is currently offline mowryFriend
Messages: 51
Registered: July 2009
Member
Hi

1. I am using command framework to show popup menus for my view, and I
used visible and activate when clauses. It works fine, but when I detached
view using detached options on the view, I loose all pop up menus.

I am not sure whether this is a eclipse defect or I am missing some thing.

2. And also I noticed one more scenario where it looses pop up menus.
When I launch editor from the view, don't set focus on the editor, come
back to the view, right click on any node, and I don't see any pop up
menus options.
If I set focus on the editor, then evrything works fine.

Thanks
David
Re: Command FrameWork- loosing popup menus when I detach window [message #474134 is a reply to message #474128] Mon, 14 July 2008 23:59 Go to previous messageGo to next message
mowry is currently offline mowryFriend
Messages: 51
Registered: July 2009
Member
It looks like this is a eclipse defect. I am using eclipse 3.2.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=212292.

Thanks,
David
Re: Command FrameWork- loosing popup menus when I detach window [message #474135 is a reply to message #474128] Tue, 15 July 2008 16:47 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Cross Posting to eclipse.platform.

David wrote:
> Hi
>
> 1. I am using command framework to show popup menus for my view, and I
> used visible and activate when clauses. It works fine, but when I
> detached view using detached options on the view, I loose all pop up menus.
>
> I am not sure whether this is a eclipse defect or I am missing some thing.
>
> 2. And also I noticed one more scenario where it looses pop up menus.
> When I launch editor from the view, don't set focus on the editor, come
> back to the view, right click on any node, and I don't see any pop up
> menus options.
> If I set focus on the editor, then evrything works fine.
>
> Thanks
> David
>
Re: Command FrameWork- loosing popup menus when I detach window [message #474136 is a reply to message #474135] Tue, 15 July 2008 18:27 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

> David wrote:
>> Hi
>>
>> 1. I am using command framework to show popup menus for my view, and I
>> used visible and activate when clauses. It works fine, but when I
>> detached view using detached options on the view, I loose all pop up
>> menus.
>>
>> I am not sure whether this is a eclipse defect or I am missing some
>> thing.

Are you on eclipse 3.3? Does it still do this in eclipse 3.4? If so,
please open a bug with a simple example at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI&short_desc=[Contributions]

>> 2. And also I noticed one more scenario where it looses pop up menus.
>> When I launch editor from the view, don't set focus on the editor,
>> come back to the view, right click on any node, and I don't see any
>> pop up menus options.

Are these your editor/view? When you open the editor, doesn't it become
active? Does your view and editor implement setFocus() correctly?

This works for me with both the Project Explorer/Text editor and the
Info View and Info Editor (command based in
org.eclipse.ui.examples.contributions).

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: Command FrameWork- loosing popup menus when I detach window [message #474137 is a reply to message #474136] Tue, 15 July 2008 18:58 Go to previous message
mowry is currently offline mowryFriend
Messages: 51
Registered: July 2009
Member
Hi

1. I am using command framework to show popup menus for my view, and I
used visible and activate when clauses. It works fine, but when I detached
view using detached options on the view, I loose all pop up menus.

I am not sure whether this is a eclipse defect or I am missing some thing.


[PW]
Are you on eclipse 3.3? Does it still do this in eclipse 3.4? If so,
please open a bug with a simple example at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI&short_desc=[Contributions]

[Daivd] I tested with eclipse 3.2 & 3.3. I see the same behavior. I
haven't moved to eclipse 3.4.


2. And also I noticed one more scenario where it looses pop up menus.
When I launch editor from the view, don't set focus on the editor, come
back to the view, right click on any node, and I don't see any pop up
menus options.


[PW]
Are these your editor/view? When you open the editor, doesn't it become
active? Does your view and editor implement setFocus() correctly?

This works for me with both the Project Explorer/Text editor and the Info
View and Info Editor (command based in
org.eclipse.ui.examples.contributions).

[David]
SetFocus is set properly on the view but not on the editor. If I don't set
setFocus on the editor, launch editor from the view, come back to the
view, select any node in the view and right click to see menu options. I
see options are disabled which need some specific object selection.
When I set setFocus on the editor, everthing works as expected.
Re: Command FrameWork- loosing popup menus when I detach window [message #618984 is a reply to message #474128] Mon, 14 July 2008 23:59 Go to previous message
mowry is currently offline mowryFriend
Messages: 51
Registered: July 2009
Member
It looks like this is a eclipse defect. I am using eclipse 3.2.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=212292

Thanks,
David
Re: Command FrameWork- loosing popup menus when I detach window [message #618986 is a reply to message #474128] Tue, 15 July 2008 16:47 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Cross Posting to eclipse.platform.

David wrote:
> Hi
>
> 1. I am using command framework to show popup menus for my view, and I
> used visible and activate when clauses. It works fine, but when I
> detached view using detached options on the view, I loose all pop up menus.
>
> I am not sure whether this is a eclipse defect or I am missing some thing.
>
> 2. And also I noticed one more scenario where it looses pop up menus.
> When I launch editor from the view, don't set focus on the editor, come
> back to the view, right click on any node, and I don't see any pop up
> menus options.
> If I set focus on the editor, then evrything works fine.
>
> Thanks
> David
>
Re: Command FrameWork- loosing popup menus when I detach window [message #618987 is a reply to message #474135] Tue, 15 July 2008 18:27 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

> David wrote:
>> Hi
>>
>> 1. I am using command framework to show popup menus for my view, and I
>> used visible and activate when clauses. It works fine, but when I
>> detached view using detached options on the view, I loose all pop up
>> menus.
>>
>> I am not sure whether this is a eclipse defect or I am missing some
>> thing.

Are you on eclipse 3.3? Does it still do this in eclipse 3.4? If so,
please open a bug with a simple example at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI&short_desc=[Contributions]

>> 2. And also I noticed one more scenario where it looses pop up menus.
>> When I launch editor from the view, don't set focus on the editor,
>> come back to the view, right click on any node, and I don't see any
>> pop up menus options.

Are these your editor/view? When you open the editor, doesn't it become
active? Does your view and editor implement setFocus() correctly?

This works for me with both the Project Explorer/Text editor and the
Info View and Info Editor (command based in
org.eclipse.ui.examples.contributions).

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: Command FrameWork- loosing popup menus when I detach window [message #618990 is a reply to message #474136] Tue, 15 July 2008 18:58 Go to previous message
mowry is currently offline mowryFriend
Messages: 51
Registered: July 2009
Member
Hi

1. I am using command framework to show popup menus for my view, and I
used visible and activate when clauses. It works fine, but when I detached
view using detached options on the view, I loose all pop up menus.

I am not sure whether this is a eclipse defect or I am missing some thing.


[PW]
Are you on eclipse 3.3? Does it still do this in eclipse 3.4? If so,
please open a bug with a simple example at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI&short_desc=[Contributions]

[Daivd] I tested with eclipse 3.2 & 3.3. I see the same behavior. I
haven't moved to eclipse 3.4.


2. And also I noticed one more scenario where it looses pop up menus.
When I launch editor from the view, don't set focus on the editor, come
back to the view, right click on any node, and I don't see any pop up
menus options.


[PW]
Are these your editor/view? When you open the editor, doesn't it become
active? Does your view and editor implement setFocus() correctly?

This works for me with both the Project Explorer/Text editor and the Info
View and Info Editor (command based in
org.eclipse.ui.examples.contributions).

[David]
SetFocus is set properly on the view but not on the editor. If I don't set
setFocus on the editor, launch editor from the view, come back to the
view, select any node in the view and right click to see menu options. I
see options are disabled which need some specific object selection.
When I set setFocus on the editor, everthing works as expected.
Previous Topic:how can you write unit tests to see your dynamic content help has been processed
Next Topic:Eclipse 3.4 infocenter war and locales
Goto Forum:
  


Current Time: Sat Nov 09 03:15:27 GMT 2024

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

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

Back to the top