oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.3k stars 741 forks source link

support for WPF resources in definition? #856

Open chkp-tomerso opened 9 years ago

chkp-tomerso commented 9 years ago

Hi,

When working in WPF, we define resources and use them.

Resource definition is made, for example, like this:

<Style x:Key="actionTemplateSelector">...</Style>

Using the resource can either be in C#, or in other Xaml files, like this for example:

<Button Style="{StaticResource actionTemplateSelector}" />

If I could search for a resource key by its definition, it will really help a lot. Today, we always do the full search and scan all the pages until we find x:key=”[the resource we searched for]”.

Is there a way to make definition search (or symbol search) work? thanks.

tarzanek commented 9 years ago

yes you would need to add a wpf analyzer check exuberant ctags for support or add manual one then definitions will work easy task if you know wpf (rest can be figured out from old pushes to opengrok e.g. see scala analyzer pushes in git history)

tarzanek commented 9 years ago

i mean easy if you know lexical and grammar info about language/resource you want to add to recognized files/extensions

vladak commented 8 months ago

I assume WPF stands for Windows Presentation Foundation.