Re: Open Java Source File from fully qualified Name?
"BR Brett Ryan (3456)" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Message-ID | <[email protected]> |
What I normally do is create a reference in an existing java source file, eg. com.example.com.MyClass t; Then option+click/ctrl+click (go to reference) and it will open that class's source if it exists or open the inferred source from a binary class file. > On 31 Dec 2015, at 06:16, c_reiter <[email protected]> wrote: > > Hello! > > I have got a fully qualified name of a Java Source File, e.g. "com.example.application.logic.SomeJavaBean" and want to open the associate java source file in the editor window if it is contained in one of the currently opened projects. > > If it's already opened the window should be brought to the front. > > How can I resolve the right file from the above string? I've searched for hours, but I'm lost. > > Is there also a effficient way to test if such a string refers to a known java source file in one of the currently opened projects? > > Thank in anticipation :) > > chris > > > >