Re: Find/Replace disabled in text editor after upgrade from 7.1 to 8.0.2
Oliver Rettig <[email protected]> Sun, 16 Apr 2017 09:50:38 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Organization | ORAT |
| Message-ID | <1829080.6Y6cXoWaoE@l560> |
Hi, thats intersting. How have you found which dependencies are needed to activate this functionality? I often run into such problems with upgrades of the platform and it is always an trial-and-error-session for me to find out which modules I have to add. best regards Oliver > ...I found what was the problem. I thought that the "find in text action" > was implemented by org.openide.actions.FindAction, well no...after a hard > debug, I found that the responsible action is > org.netbeans.modules.editor.search.actions.SearchAction. This action is > contained in the module org-netbeans-modules-editor-search as > org.netbeans.modules.editor.search.actions.SearchAction My Rcp Application > was missing this dependency, so adding it to my application, solved the > problem. Another useful aspect about this, is that this dependency will > solve the problem only for the editors registered within the plaform. To > make it work for any text file kind (some log file for instance found in > your project) there is good to have org-netbeans-modules-editor-plain > dependency included in your application. It allows to open any kind of text > file in the decorated netbeans editor and it enables the actions > Find/Replace.