The previous code assumes there's a View component identified by 'componentToSearch' that can be searched. By default only JTextComponent subclasses are supported. You'll have to follow these steps should you wish to support additional components:

Create an implementation of the griffon.plugins.dialogs.Searcher interface.

Register the implementation with griffon.plugins.dialogs.Finder. This task can be achieved in two ways:

Declaratively. By creating a file named META-INF/services/griffon.plugins.dialogs.Searcher with a line per searcher implementation following this format:com.acme.FooComponent = com.acme.FooComponentSearcher