Page 2 of 7

Re: ExtJS 4.x support

Posted: Wed Apr 27, 2011 4:32 pm
by icflorescu
Sencha just released the final version of ExtJS 4...

Re: ExtJS 4.x support

Posted: Wed Apr 27, 2011 8:36 pm
by eric_suen
I have uploaded a quick update which should fix Ext.create issue, please download

http://www.agpad.com/downloads/com.spket.js_1.6.18.jar

http://www.agpad.com/downloads/ext-4.0.0.jsb2 for Ext JS 4.0.0

Re: ExtJS 4.x support

Posted: Thu Apr 28, 2011 4:33 am
by yd290276
one word : "WONDERFULL" ! It works with new Ext.create AND Ext.define and it takes in account the "extend" property.
Thank you very much for this so quick fix !

Re: ExtJS 4.x support

Posted: Thu Apr 28, 2011 5:01 am
by yd290276
hello again,
this post is maybe out of context, and i don't found any post about this "bug" :

I'm on a macbook pro, working on eclipse with spket editor.Do you know why when i want to select or move to next word in editor with keyboard shortcuts "alt+right or left arrow", the cursor dosen't stop at "." ?
For exemple, in code "console.log()", the selection jump from "c" to "(" but doesn't stop at "."

I tried this in PHP editor and in "$test->dispatch($request)", it works. Is this a bug ? Only on mac ?

Thank you !

Re: ExtJS 4.x support

Posted: Wed May 04, 2011 6:07 am
by yd290276
Hi all !
There are still "bugs" in ExtJs 4.0 new class handling in spket in the outline view. Curiously, the outline view is different according EtxJs src file that is opened.

First :
For exemple, application.js shows in outline :
> {...}
> Anonymous
> property xxxx
> property xxxx
> and so on...

But AbstractView.js show in outline :
> Ext
> view
> abstractview
> property xxx
> property xxx
> and so on...

The two classes in the file are defined the same way, says :
Ext.define('Ext.namespace.classname',{});

Second
This is not really a bug, rather a feature request for outline view. When a ExtJS class is defined and extends and/or uses mixins, the extended/mixins properties and methods are not shown in outline.

Are any fixes planned for this ?

Thank you very much for your work !

Re: ExtJS 4.x support

Posted: Wed May 04, 2011 6:12 pm
by eric_suen
Uploaded a new version, should fix the first problem, and I don't understand your second question, you mean show properties/methods defined in others class?

http://www.agpad.com/downloads/com.spket.js_1.6.18.jar

And I don't have issue move to next word on Windows system, does "double click" has the same behave on Mac?

Re: ExtJS 4.x support

Posted: Thu May 05, 2011 5:50 am
by yd290276
Hello,
your fix works great !

For the second point, i mean show properties/methods defined in other classes, for exemple in

Code: Select all

Ext.define('Users.view.Viewport', {
	extend : 'Ext.container.Viewport',
that would be great if the outline view shows properties and methods of class Ext.view.Viewport AND properties and methods of Ext.container.Viewport. But i know this could be difficult because spket is not aware of where are the other js files.


Finally, "yes", the double click as the same behave on Mac as on windows and when i try to double click on a "word" (says in "this.control") i can select only a word. But with "alt+right/left arrow" cursor doesn't stop at the "."

Re: ExtJS 4.x support

Posted: Mon May 16, 2011 2:41 pm
by liu78778
umm, in the jsb2 file

Code: Select all

"pkgs": [{
       "name": "Ext All",
       "file": "pkgs/all.js",
       "fileIncludes": [
where the file "pkgs/all.js", i can't found it in the ext-4.0.0-gpl/com zip, same thing wrong?

Re: ExtJS 4.x support

Posted: Mon May 16, 2011 4:41 pm
by eric_suen
"pkgs/all.js" is target, the sources are files list in "fileIncludes", the editor only need that information

Re: ExtJS 4.x support

Posted: Tue May 17, 2011 1:11 am
by liu78778
THANKS VERY MUCH! :D

Re: ExtJS 4.x support

Posted: Fri Jun 17, 2011 8:17 pm
by smokeman
I installed spket plugin to my eclipse environment, and configured 2 javascript profiles, one for extjs3, and another for extjs4. I downloaded the latest extjs-4.0.2a, and used your jsb2 file in this thread for it, understanding that some stuff will be missing.
I started an extjs4 project, and did a project specific profile, and made the extjs4 the default profile for the project. I imported one of the sample apps in examples for mvc, and went to the top, and typed Ext.(then codehints popped up), so that works, however the outline is not working. I used that heavily with ext3. have I misconfigured?
I did not download the .jar file in this thread, I just used the normal update site. Is this file a replacement for that file(which ends up in plugins folder in eclipse?)

Re: ExtJS 4.x support

Posted: Sat Jun 18, 2011 5:49 am
by eric_suen
yes, you need download the .jar file, and here is http://www.agpad.com/downloads/ext-4.0.2a.jsb2 for Ext JS 4.0.2a

Re: ExtJS 4.x support

Posted: Mon Jun 20, 2011 6:13 pm
by smokeman
works great now, thanks!

Re: ExtJS 4.x support

Posted: Tue Jun 28, 2011 10:27 am
by jeldad
Hello,

Am using Aptana Studio 3 with Spket. Have
a) created necessary ExtJS profile
b) downloaded/extracted ExtJS4.0.2a into folder --> ../ext/402a
c) downloaded http://www.agpad.com/downloads/com.spket.js_1.6.18.jar into ...\aptana studio 3\plugins\ (Renamed existing file)
d) downloadedhttp://www.agpad.com/downloads/ext-4.0.2a.jsb2 into
i) extjs root
ii) extjs build folder

When I add the jsb2 file, i only see [Ext.All]. Nothing else appears. Code assist doesnt work. Works with ExtJS 3.#
Would appreciate any pointers on what i need to be doing.

Regards

Re: ExtJS 4.x support

Posted: Tue Jun 28, 2011 1:16 pm
by eric_suen
the jsb2 file should download into extjs root folder, and yes it only has Ext.All, just select that one, make sure the profile is your default profile, and open javascript file use Spket JavaScript Editor.
Renamed existing file
you should move that file to other folder or just delete it