Community
Participate
Working Groups
It should be possible for a client to consume the Editor component without needing dojo. To do this we need to come up with replacements for: - dojo.hitch - dojo.connect - dojo.regexp.escapeString - dojo.Animation - dojo.Deferred - dojo.DeferredList Deferred and DeferredList are used only for content assist, and could probably be removed altogether.
Note that to remove dojo.connect you will need to do in the editor and something similar to what we need to the textview. See the implementation of: textView#addEventListener textView#removeEventListener textView#onSelection (as an example) If you like this format we can move our EventTable to API so you can reuse it. How many events do you have in the editor ? is it only "InputChange" and "DirtyChange" ?
>Note that to remove dojo.connect you will need to do in the editor and >something similar to what we need to the textview. Note that to remove dojo.connect you will need to do to the editor something similar to what we did in the textview.
(In reply to comment #1) > If you like this format we can move our EventTable to API so you can reuse it. That would be useful. > How many events do you have in the editor ? is it only "InputChange" and > "DirtyChange" ? Yes, although I expect we will want more events later. If you have ideas, Bug 349957 is probably the best place to capture them.
*** Bug 352621 has been marked as a duplicate of this bug. ***
More complete list of dojo features being used - dojo.byId - dojo.hitch - dojo.addOnLoad - dojo.connect - dojo.forEach - dojo.map - dojo.regexp.escapeString - dojo.create - dojo.Animation - dojo.Deferred - dojo.DeferredList
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?h=bug351462_no-dojo&id=f8eab0e43cd36c58cae0483825ae8a57d3d16769
(In reply to comment #6) Wrong link. It should be: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=f8eab0e43cd36c58cae0483825ae8a57d3d16769