Bug 208893 - Netbeans 7.1 RCP & ExplorerActionsImpl
Netbeans 7.1 RCP & ExplorerActionsImpl
Status: RESOLVED WONTFIX
Product: platform
Classification: Unclassified
Component: Explorer
7.1
PC All
: P3 (vote)
: TBD
Assigned To: Jaroslav Tulach
issues@platform
: TEST, THREAD
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-27 11:45 UTC by jgodboldsmith
Modified: 2012-03-16 15:36 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jgodboldsmith 2012-02-27 11:45:38 UTC
We found an issue with the integration of Netbeans 7.1 RCP in our application (previously we were using Netbeans 6.9 RCP). 

There is an issue with the ExplorerActionsImpl (and its private class ActionStateUpdater), which is confined to the actions within an explorer context. The ActionStateUpdater is attached to the ExplorerManager for the explorer context as a property change listener and updates the status of the cut, copy, paste and delete actions in response to any changes, e.g. when displaying the actions in a menu when the explorer gets focus etc.  

The ActionStateUpdater does this by setting the actions as disabled then running the class RequestProcessor.Task() to update the action statuses, so the actions are enabled asynchronously with the display of the actions in the menu.

The current implementation has caused issues with our automation tools as they expect keyboard actions and menu displays to be single threaded and the menu fully populated and active once the main thread has finished. 

Would it be possible to parametrize this behaviour so that it can be disabled, for automation testing, this will allow us to still give our end users the full benefits of what it brings without having to painfully code in suitable delays in the automation suite?
Comment 1 Jaroslav Tulach 2012-03-16 15:36:24 UTC
OK, this behavior could be made synchronous if certain property is set. Please donate a patch, possibly send it to API review (I can help with that). Meanwhile closing, but feel free to reopen as soon as there is something to integrate.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo