ceylon-ide-intellij icon indicating copy to clipboard operation
ceylon-ide-intellij copied to clipboard

Cannot use Ctrl+Click to go to xml declarations

Open rohitmohan96 opened this issue 9 years ago • 7 comments

This seems to work with Ceylon but doesn't work with any xml declarations.

If I ctrl-click (or ctrl-B) any xml declaration such as R.Layout.activity_main or R.Id.textView it should take me to the corresponding layout file. This is really useful when jumping between Ceylon and layout files.

rohitmohan96 avatar Jun 06 '16 14:06 rohitmohan96

This is in a Ceylon Android project in Android Studio.

rohitmohan96 avatar Jun 06 '16 16:06 rohitmohan96

@bjansen this looks more like a feature request, not a bug, to me ... or is this the sort of thing that is expected to always work due to the architecture of IntelliJ?

gavinking avatar Jun 07 '16 20:06 gavinking

Well, in theory there's a generated R class, the model loader is aware of it, so I think it should work using our current set of features.

bjansen avatar Jun 07 '16 21:06 bjansen

I mean it should jump to the generated class, not to the XML file.

bjansen avatar Jun 07 '16 21:06 bjansen

In Android Studio, with a java android project, when I click the activity_main part in R.layout.activity_main it takes me to the activity_main.xml layout file. Similarly, when I click textView it takes me to that part of the layout file.

rohitmohan96 avatar Jun 07 '16 21:06 rohitmohan96

I'm re-classifying this an an enhancement :)

gavinking avatar Jun 09 '16 10:06 gavinking

Note: #104 is related.

gavinking avatar Jun 09 '16 10:06 gavinking