This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245109 - Add more features to XML files and not only in java projects.
Summary: Add more features to XML files and not only in java projects.
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-17 14:17 UTC by Christian Lenz
Modified: 2015-04-08 10:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2014-06-17 14:17:31 UTC
As my daily work with a XML based framework with code behind files as in ASP.NET, I have some things which are missing for my perspective:

I have this file: http://pastebin.com/jCY5n4fY

- what I expected is to get code completion depends on the namespace. If we have xmlns:views="project.views" that I see a list when I type <views:indexView, or whatever.

- namespace navigation. When I click on an svg in <svg:rect I should come to the namespace. For now its this point: <html xmlns:svg="" then I can click the link and I come to this site. If I have an example like: <views:indexView and I click on view it should navigate to <rootElement xmlns:views="myProject.views" and when I click on myProject or views it should navigate to this folder or select in inside the project. If I click on indexView, it should navigate to the file like the same behaviour in requirejs with the modules dependencies.

- As I mentioned it here before https://netbeans.org/bugzilla/show_bug.cgi?id=243135, renaming feature is working but not correct if we have an other structure for an html5 project. In my daily work we have a lot of folders and no one is called public_html. The root folder is public and we have a lot of subfolders with view, modules, components etc. So for my perspective the renaming feature should work in all XML files, independent from the folder name or project type.

- Breadcrumbs should work through elements like: <svg:rect>. In my file I only see html > body > thats all.

- I would prefer navigation through the : and camelCase navigation <views:myView. Now my cursor is behind View and I press ctrl + <- (left arrow) and the cursor jumps to the beginning of the tag. Its better to have it between my|View and after this ctrl + <- :|myView, so I can rename only the part after :. The same for the beginning to the end.

If I have more features would I prefer I will comment it, if its better to create new tickets for each feature, than please let me knows it.


Regards

Chris
Comment 1 Svata Dedic 2015-04-07 09:28:28 UTC
(In reply to ChrisLE from comment #0)
> - namespace navigation. When I click on an svg in <svg:rect I should come to
> the namespace. For now its this point: <html xmlns:svg="" then I can click
> the link and I come to this site. If I have an example like:
> <views:indexView and I click on view it should navigate to <rootElement
> xmlns:views="myProject.views" and when I click on myProject or views it
> should navigate to this folder or select in inside the project. If I click
> on indexView, it should navigate to the file like the same behaviour in
> requirejs with the modules dependencies.

Pls. elaborate: I understood that you want to navigate from namespace prefix to the relevant namespace declaration line - OK ? What is that about clicking 'myProject.views' - xmlns should be an URI but the NB would need to interpret the URI. Currently I can only support navigation to [relative] URLs.

> If I have more features would I prefer I will comment it, if its better to
> create new tickets for each feature, than please let me knows it.
> 
Yes, it's better to file enhancements for each feature separately; it allows better tracking/merging.
Comment 2 Christian Lenz 2015-04-07 13:13:57 UTC
Ok, I understand your point, than I would prefer to navigate to the file, when I click on <ns:MyWidget /> because myWidget should be a MyWidget.java file with a ui file.

Thx for your feedback I will create new tickets for the other things.
Comment 3 Svata Dedic 2015-04-07 13:17:49 UTC
Ah; is it a GWT project, or some e.g. bean mapping ?
Comment 4 Christian Lenz 2015-04-07 13:22:32 UTC
Since half a year or so, it is a GWT project, yes. Before GWT, it was a web project with a framework based on XML and JS called rAppid.js. http://www.rappidjs.com/#/home. For this, we have a BasketClass.js file and a Basket.xml file.
Comment 5 Christian Lenz 2015-04-08 10:59:17 UTC
Borken rename feature for XML components will be handled here: https://netbeans.org/bugzilla/show_bug.cgi?id=243135 as you already commented :)