Hello,

I have created a fix for the aptana outline view for qooxdoo 0.7.
This works for me on eclipse 3.2.1.
(warning : this does not provide any help for code-completion)
The outline view is fixed by adding a few lines of javascript code in the
following file:

eclipse/plugins/com.aptana.ide.scripting_0.2.7.13425/scripts/aptana/views/outlineView/outlineJavaScript.js

These are the lines you can add :

------------------------------------------
...
function JSProcessInvoke(node)
{
        var children = node.children;
        var lhs = children[0];
        var source = lhs.source;
        
        // start of fix:
        /////////////////
        if (source === "qx.Class.define")
        {
                var rhs = children[1];
                if (rhs.typeIndex == JSNodeTypes.ARGUMENTS)
                {
                        var args = rhs.children;
                        
                        if (args.length == 2)
                        {
                                var arg1 = args[0];
                                var arg2 = args[1];
                                
                                if (arg2.typeIndex == 
JSNodeTypes.OBJECT_LITERAL)
                                {
                                        var reference = new Reference("/", 
arg1.source + "", "/");
                                        JSAddValue(reference, arg2, node);
                                }
                        }
                }
                return;
        }
        //  end of fix
        ///////////////
        
        if (JSClassExtenders.hasOwnProperty(source))
        //if (source == "dojo.lang.extend" || source == "MochiKit.Base.update" 
||
source == "Object.extend") ....

------------------------------------

After you edited and saved the file, you have to restart eclipse.
The outline should now outline the object literal that defines the qooxdoo
class.



Dimitri


-- 
View this message in context: 
http://www.nabble.com/Aptana-JSEditor-and-the-new-OO-syntax-in-qooxdoo-0.7-tf3427080.html#a11204197
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to