| Action which searches files in folders, packages and projects.
This action uses two different mechanisms of enabling/disabling,
depending on whether the action is available in the toolbar or not:
- if the action is in the toolbar:
The action is updated (enabled/disabled) continuously.
- if the action is not in the toolbar
The action state is not updated but it is computed on demand,
i.e. when method isEnabled() is called.
Moreover, the first call of method isEnabled() returns
false , no matter whether some projects are open or not.
This is made so based on the assumption that the first call of
isEnabled() is done during IDE startup as a part of menu
creation. It reduces startup time as it does not force projects
initialization.
author: Marian Petras |