angelozerr / CodeMirror-XQuery

XQuery Editor based on CodeMirror
37 stars 14 forks source link

Support of documentation popup for methods #1

Closed jgoldhammer closed 11 years ago

jgoldhammer commented 11 years ago

Sample: codemirror_ xquery hint lint demo_2013-06-04_11-42-38

http://codemirror-java.opensagres.cloudbees.net/xquery.html

angelozerr commented 11 years ago

This feature is done with generic mode :

Those template was generated from the existing template Eclipse (see https://github.com/angelozerr/CodeMirror-Java) For instance for JS I have used JSDT Eclipse template https://github.com/angelozerr/CodeMirror-Java/blob/master/src/main/resources/templates/javascript/javascript-templates.xml

You must launch the main https://github.com/angelozerr/CodeMirror-Java/blob/master/src/main/java/codemirror/hint/generator/templates/eclipse/EclipseTemplate2JS.java

Today it doesn't exists clean code for that, it's just a POC.

angelozerr commented 11 years ago

Done

codemirrorterndocs

See demo at http://codemirror-java.opensagres.cloudbees.net/codemirror-javascript/demo/javascript-all.html

jgoldhammer commented 11 years ago

Very cool. Like it. Maybe you can investigate if it is possible to show the suggestions after opening the link in the browser and return back to the codemirror editor. Currently, the suggestion list is removed after return to the codemirror-tab.

angelozerr commented 11 years ago

I know that the content info popup should be improved because it closes as soon as you try to focus it (when you click on the link, when you try tab etc). The reason of this bug is that it's the first popup which closes teh whole completion (when this popup looses teh focus). Marijn has added 'closeOnUnfocus' option but I must study it See https://groups.google.com/forum/?fromgroups#!topic/codemirror/5N0rop7dH1g

An other idea that I have done is that insert the content of the URL in the second popup. I have tried with an iframe but it doesn't work. I must try with XMLHttpRequest.