[jbosstools-issues] [JBoss JIRA] (JBIDE-16077) CLONE - when hyperlinked file does not exist offer to create one
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Thu Nov 21 04:43:05 EST 2013
Alexey Kazakov created JBIDE-16077:
--------------------------------------
Summary: CLONE - when hyperlinked file does not exist offer to create one
Key: JBIDE-16077
URL: https://issues.jboss.org/browse/JBIDE-16077
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: jsp/jsf/xml/html source editing
Reporter: Alexey Kazakov
Assignee: Daniel Azarov
Fix For: 4.2.0.Alpha1
Attachments: CreateFileHyperlink.png, CreateMissingFile1.png, CreateMissingFile1.png, CreateMissingFile2.png, Question.png
When Ctrl+clicking on app.js in this snippet:
<script type="text/javascript" src="js/app.js"></script>
And the file js/app.js does not exist eclipse just "blinks".
Better if we could offer creating the file, even just a blank/empty one.
The same goes for image and css references, all those would be nice not having to go through the full ctrl+N wizard to just create such files.
*Details:*
Implemented new hyperlink detector which works for follow files: xml, htm, html, jsp, xhtml.
Hyperlink detector searches in text nodes and attribute values for string which ends with ".js", ".css", ".jsp", ".htm", ".html" and ".xhtml". Hyperlink detector tries to consider that string as a file name and tries to find that file in a project. If there is no such file, hyperlink detector makes hyperlink which offer to create missing file:
File '<filename>' does not exist. Click here to create.
Note: name of hyperlink is visible only if there are two or more hyperlinks for the same text region.
If you click on this hyperlink follow dialog will appear:
!CreateMissingFile1.png!
If you select checkbox and press OK, wizard will appear:
!CreateMissingFile2.png!
If you press button Finish wizard will create the file
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list