Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat's a good way to view dojo's javascript source files in Eclipse with Aptana?
    primarykey
    data
    text
    <p>I have Aptana installed within Eclipse. I'm working on a project with the dojo 1.2 JavaScript library installed. </p> <p>When I open one of dojo's dijit .js files, the code is formatted in a rather difficult to read way. The Eclipse "Outline" view shows a list of functions with names like "_2" and "ew". Not very human friendly. </p> <p>I'm talking about source code that looks like this:</p> <blockquote> <p>dojo.declare("dijit.InlineEditBox",dijit._Widget,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:"dijit.form.TextBox",editorParams:{},onChange:function(_1){ },onCancel:function(){ },width:"100%",value:"",noValueIndicator:"&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;",constructor:function(){ this.editorParams={}; },postMixInProperties:function(){ this.inherited(arguments); this.displayNode=this.srcNodeRef; var _2={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"}; for(var _3 in _2){ this.connect(this.displayNode,_3,_2[_3]); } dijit.setWaiRole(this.displayNode,"button"); if(!this.displayNode.getAttribute("tabIndex")){ this.displayNode.setAttribute("tabIndex",0); } this.attr("value",this.value||this.displayNode.innerHTML); },setDisabled:function(_4){ dojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated. Use attr('disabled', bool) instead.","","2.0"); this.attr("disabled",_4);</p> </blockquote> <p>How do I get a clearer, "friendlier" view of such a .js file? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload