[
https://issues.jboss.org/browse/JBIDE-15348?page=com.atlassian.jira.plugi...
]
Daniel Azarov edited comment on JBIDE-15348 at 8/21/13 2:47 PM:
----------------------------------------------------------------
We can not just implement hyperlink which creates missing file,
because this hyperlink is needed to be shown in popup menu,
but Eclipse by default shows hyperlinks in popup menu only if numbers of hyperlinks for
current region more than 1.
We can not just change this behavior because method getHyperlinkPresenter in
org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration is final
But we can copy class StructuredTextViewerConfiguration and related classes (~10 classes)
to our plugin and change them.
Result may look like this:
!CreateFileHyperlink.png!
Or we can show dialog before creating a missing file. It may look like this:
!Question.png!
[~maxandersen], what do you think?
was (Author: dazarov):
We can not just implement hyperlink which creates missing file,
because this hyperlink is needed to be shown in popup menu,
but Eclipse by default shows hyperlinks in popup menu only if numbers of hyperlinks for
current region more than 1.
We can not just change this behavior because method getHyperlinkPresenter in
org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration is final
But we can copy class StructuredTextViewerConfiguration and related classes (~10 classes)
to our plugin and change them.
Result may look like this:
!CreateFileHyperlink.png!
Or we can show dialog before creating a missing file. It may look like this:
!Question.png!
Max, what do you think?
when hyperlinked file does not exist offer to create one
--------------------------------------------------------
Key: JBIDE-15348
URL:
https://issues.jboss.org/browse/JBIDE-15348
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: jsp/jsf/xml/html source editing
Reporter: Max Rydahl Andersen
Assignee: Daniel Azarov
Labels: new_and_noteworthy
Fix For: 4.2.x
Attachments: CreateFileHyperlink.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.
--
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