View Full Version : Ext 1.1 plugin for Aptana
mkidder
4 Aug 2007, 9:19 PM
8/12 Update: How to install
Create a folder in the "Aptana\plugins" directory (or "eclipse\plugins", if you installed Aptana as a plugin) with the same name as the ZIP file. You can make it shorter if you wanted to (e.g. "ext 1.1").
If using a utility like WinZip, extract files to this folder. Make sure create sub-folders is checked.
NOTE: Windows XP "compressed folders" utility creates a folder automatically when you extract files on a ZIP file. I had assumed the same thing for other systems. Sorry if you had difficulty getting this plugin to work correctly.
8/6 Update: New version "com.extjs.ext.1.1_1.1.0.00002.zip (http://code.google.com/p/mkidder-script/downloads/list)"
Added Ext Scriptdoc support - ext_aptana.xml
Fixed Drag handle not showing up default sample project
Added Ext Profile scripts: create, add to, change to **not working yet**For anyone who is working with the Aptana IDE, I have created a plugin for latest stable version of ext. I have tested on Aptana 0.2.9.16204 running Windows XP.
I have done some initial testing with the create Project, Samples, and Docs, and they all are working. I also did some additional testing on several samples previews and fixed some things from the 1.0 release that Aptana did for their last plugin release. Also put a workaround in for parsing issues in "ext-all-debug.js" (Aptana trac #5431). The source is showing quite nicely now in Outline View and Milestone 10 release should be even better.
**removed incorrect install info**. I left it as a ZIP file because I could not get the JAR file to be recognized by Aptana. Not sure if manifest file is totally correct, or Aptana does not like XP compressed folders. I don't have Winzip. Anyways, let me know if anyone has success.
Link: http://mkidder-script.googlecode.com
jack.slocum
4 Aug 2007, 9:41 PM
Thanks for sharing. I have something that you may want to integrate. It's a ScriptDoc xml file so the code completion also includes comments. I just got this generating, but in my preliminary tests it seems to work ok. I didn't have a chance to get a complete plugin working, so I am happy to see yours. :)
iladis
5 Aug 2007, 2:27 AM
Its really great think to have Ext plugin for aptanaEditor; but I want to know how can i install this plugin thank you for your help
mkidder
5 Aug 2007, 10:54 PM
Thanks Jack! I have updated the plugin. That was going to be my next task. The ScriptDoc library extension works much better than the separate sdoc files.
I will upload this file to my area on GoogleCode as a separate download. Did you use a utility to create this file?
Took me a little while to get your xml file to work, Aptana didn't like the accented character embedded somewhere around line 1022. Anyhow, changed it and works fine.
mkidder
5 Aug 2007, 11:33 PM
Just a quick note on the "Ext 1.1 Samples" within the Samples panel in Aptana. You can either create a Project from sample or preview sample. I just noticed that the preview defaults to the first html file in each folder sample. So even though you right-click on tabs | tabs.html file, for example, and "Preview Sample" it is showing "ajax1.htm". If you "Create Sample as Project" the Sample works just fine.
Hope the information helps...
jack.slocum
6 Aug 2007, 6:20 PM
Thanks for updating the plugin! I use the Ext doc parser with a custom template to generate the docs. Any idea what the character was it was having trouble with?
mkidder
6 Aug 2007, 7:56 PM
Any idea what the character was it was having trouble with?
It was the "Latin lowercase I with accent" within the MessageBox.buttonText description, Line 1022.
[CODE]Customize the default text like so: Ext.MessageBox.buttonText.yes = "S[COLOR="Red"][B]
fercho07
9 Aug 2007, 2:02 PM
Can anyone help me with code completion in eclipse with aptana plugin ?? I can't get it work !!
Thanks.
bingomar
9 Aug 2007, 5:39 PM
Hi Fercho,
I'm from Aptana. How did you try to get it to work? If you let me know the steps you tried so far, I can help.
Best,
Ingo
parel
12 Aug 2007, 9:23 AM
Could someone please explain how to install this plug-ins? Thank you very much
wfrishse
12 Aug 2007, 8:14 PM
Unzip the file. It will be in a folder named: com.extjs.ext.1.1_1.1.0.00002.
Copy this folder to the Aptana program plugins directory.
e.g. C:\Program Files\Aptana\Aptana IDE Beta\plugins
If Aptana is running, restrat it.
Add a new project, ajax library project and choose Ext 1.1
Worked first time for me.
mkidder
12 Aug 2007, 9:02 PM
fercho07, parel: I updated the install information at top of this thread. If it is installed correctly you should check the following areas:
1) Help | Help Contents - This opens Aptana's Help window. Click on "Aptana IDE Help", expand "Reference" and then "Ajax Libraries". You should see "Ext 1.1". Click on that and it will bring up the ext Documentation Center.
2) File | New -> Project. This opens the New Project wizard. Select "Ajax Project, Ajax Library Project" and click NEXT. Type in a project name, and click NEXT. You should see Ext 1.1 in the list of Ajax libraries to check.
3) The "Samples" tab in the Aptana Perspective has an "Ext 1.1 Samples" folder listed. These are the examples from the ext documentation.
-Mike
patspam
12 Aug 2007, 9:41 PM
Followed the install instructions at the top of the post and works like a charm. Many thanks!
Is there the same somewhere for the Eclipse Aptana plug-in to support Ext1.1 ?
=> it's the same setup to do
loeppky
15 Aug 2007, 11:52 AM
mkidder,
I have the Ext plugin for Aptana installed. I want to create a Code Assist Profile as compared to creating a new project. I include ext-all.js, but how do I add the ext_aptana.xml scriptdoc as well so that when I type Ext.get, I will also get the corresponding documentation and not just code completion.
Thanks,
Steve
fercho07
15 Aug 2007, 4:29 PM
fercho07, parel: I updated the install information at top of this thread. If it is installed correctly you should check the following areas:
1) Help | Help Contents - This opens Aptana's Help window. Click on "Aptana IDE Help", expand "Reference" and then "Ajax Libraries". You should see "Ext 1.1". Click on that and it will bring up the ext Documentation Center.
2) File | New -> Project. This opens the New Project wizard. Select "Ajax Project, Ajax Library Project" and click NEXT. Type in a project name, and click NEXT. You should see Ext 1.1 in the list of Ajax libraries to check.
3) The "Samples" tab in the Aptana Perspective has an "Ext 1.1 Samples" folder listed. These are the examples from the ext documentation.
-Mike
Ok, that
mkidder
16 Aug 2007, 4:08 PM
I have the Ext plugin for Aptana installed. I want to create a Code Assist Profile as compared to creating a new project. I include ext-all.js, but how do I add the ext_aptana.xml scriptdoc as well so that when I type Ext.get, I will also get the corresponding documentation and not just code completion.
Steve,
The XML file was added to the plugin as Scriptdoc library that hooks in the Aptana javascript editor as an extension point. This works a little bit different from the sdoc/js files relationship for Code Assistant Profiles. When added as an extension point, it has the benefit of providing code completion for any javascript file you are working on.
One important thing to note is that Code Assist takes precedence over this plugins Scriptdoc library. So if you are working on an ext project and have a reference to "ext-all.js" or "ext-all-debug.js" in your html file, Aptana auto-creates a new Code Assist Profile for you. The remedy I use is to use a Code Assist Profile that does NOT have ext libraries included. Either create one, or select "Default Profile" which is usually empty. Then the autocompletion will work for any project.
Let me know if the information helps....
Regards, Mike Kidder
mkidder
16 Aug 2007, 4:26 PM
[QUOTE=fercho07;54938]Ok, that
fercho07
17 Aug 2007, 12:28 AM
When i open an html file with my version of eclipse in the aptana perspective, the Code Assist Profile doesn't get the js files that are include in the html. Why ? I'm using aptana as a plugin.
mkidder
17 Aug 2007, 2:26 AM
When i open an html file with my version of eclipse in the aptana perspective, the Code Assist Profile doesn't get the js files that are include in the html. Why ? I'm using aptana as a plugin.
I tested with Aptana plugin for Eclipse (0.2.8.15637) and it works for me.
If you haven't done so already, try creating a new "ext 1.1" Ajax Library Project (named whatever you want). The ext_sample.htm file opens in the editor automatically along with a Code Assist folder "ext_sample.htm (Auto-created)". Right-click on this Code Assist folder and select "Make Current Profile". A check will appear on folder. Right-click again on folder and select "Make Profile Permanent". The "(Auto-created)" label disappears. Now, expand the folder tree and remove the 3 specific ext JS files from this Profile: "yui-utilities.js", "ext-yui-adapter.js", and "ext-all.js". Close the ext_sample.htm file and then reopen it (Autocomplete will not work until you do so). reopen "ext_sample.htm" file. Create a <script></script> block after the last external script file reference and try some code between the tags.
This same scenario should be done on your own projects. This will allow you to have autocompletion for both ext (enhanced with Scriptdoc library) and any custom JS files you have referenced in your html. NOTE: Script blocks within html do not show in Code Assist Profile, but should see functions created within autocompletion.
Hope the information helps....
PS.. please post future Aptana specific questions over at the Aptana Development forums... I am hanging out over there as well..... PSS.. I am not an Aptana employee
Teflon
17 Aug 2007, 6:43 AM
For some reason, when I install this plugin I get ExtJs v1.0.1 instead of v1.1
I have Aptana IDE (build 0.2.8.15936). I downloaded com.extjs.ext.1.1_1.1.0.00002.zip into "C:\Program Files\Aptana\Aptana IDE Beta\plugins". When I create a new Ajax Library Project, I only see an option for Ext 1.0.1 and that's exactly what I end up with. See screenshots below.
mkidder
17 Aug 2007, 7:38 PM
For some reason, when I install this plugin I get ExtJs v1.0.1 instead of v1.1
I have Aptana IDE (build 0.2.8.15936). I downloaded com.extjs.ext.1.1_1.1.0.00002.zip into "C:\Program Files\Aptana\Aptana IDE Beta\plugins". When I create a new Ajax Library Project, I only see an option for Ext 1.0.1 and that's exactly what I end up with. See screenshots below.
Make sure you unzip the file in the plugins directory, simply copying to the plugins directory will not work. If that is not it, then I would say there is an issue with the Build. Aptana put in a drop of ext 1.1 in their BETA Builds after 0.2.9.16204. I have a message on the Aptana forum regarding issues that I am seeing. Again, not sure since you are using a Milestone 8 Build. You can read that thread here (http://www.aptana.com/forums/viewtopic.php?t=2504)
fercho07
17 Aug 2007, 7:40 PM
Well, i decide to download and install AptanaIDE standalone, because as a eclipse plugin installation was bugging me. Now the code completion of ExtJs is working, but i don
mkidder
17 Aug 2007, 8:54 PM
[QUOTE=fercho07;55639]Well, i decide to download and install AptanaIDE standalone, because as a eclipse plugin installation was bugging me. Now the code completion of ExtJs is working, but i don
fercho07
18 Aug 2007, 12:25 AM
auwful !! With no documentation using namespaces is too pane. Other thing is that i can't get the profile permanent. The option to make it permanent is not appearing.
Still using SpKet despite i like Aptana for all other extra functionallity but it doesn't make simple code completion with ExtJs.
And where is suposed to be ext_aptana.xml ? I don't know where to copy and for what is that file.
Thanks.
mkidder
20 Aug 2007, 9:19 AM
auwful !! With no documentation using namespaces is too pane. Other thing is that i can't get the profile permanent. The option to make it permanent is not appearing.
Still using SpKet despite i like Aptana for all other extra functionallity but it doesn't make simple code completion with ExtJs.
And where is suposed to be ext_aptana.xml ? I don't know where to copy and for what is that file.
Thanks.
I feel your pain, still I really like what Aptana is doing. They have big ambitions and I hope to contribute what I can. The support for AJAX libraries (along with ext) will only get better in the next couple of Milestones releases. I will remind everyone who may read this thread that this plugin has been added to the BETA release of Aptana. They are still working out the kinks.
Best, Mike Kidder
ernieofori
3 Sep 2007, 5:22 PM
Thanks, followed all the tips in the thread. it all works for me fine (Aptana Version: 0.2.9.16696 - Linux) but 'Ext.get' specifically doesnt seem to show up in code assist even though 'Ext.Element.get' does. Anything I may have overlooked
janixams
21 Sep 2007, 7:59 AM
Hi all,
I can't download de Ext Plugin for aptana.
Please, repost another place to download it. I'm use aptana for my own know of ext, but is really hard without code completion.
thanks a lot
regards
violinista
21 Sep 2007, 8:08 AM
Have you tried to download from here (http://mkidder-script.googlecode.com/files/com.extjs.ext.1.1_1.1.0.00002.zip)?
janixams
21 Sep 2007, 10:57 AM
Have you tried to download from here (http://mkidder-script.googlecode.com/files/com.extjs.ext.1.1_1.1.0.00002.zip)?
Yes I do, but in my browser I see the attachment picture.
What I must to do..???
Thanks in advance.
violinista
23 Sep 2007, 10:12 PM
Hmm, Google apparently blocks download from your IP, and this is stupid and inexcusable that in 21th century someone blocks acces and limit access to certain countries!!!
Hint: use anonymouse.org web service.
janixams
25 Sep 2007, 10:00 AM
So. I'm agree with you "violinista"... but those things happen unfortunately.
And thanks about the use of "anonymouse.org" but they can't allow to download files with that weight...
I'll be grateful for any other post with a mirror... or if someone send it to my email.
janixams@gmail.com
Regards.
mkidder
25 Sep 2007, 1:10 PM
I'll be grateful for any other post with a mirror... or if someone send it to my email.
janixams@gmail.com
Regards.
Wish granted.... :) Try from this link HERE (http://www.box.net/shared/ec2nzitm40) (Box.net shared folder).
Once Aptana's Milestone 10 has a stable release, I'll push out another plugin if interested.
janixams
25 Sep 2007, 6:41 PM
Thank you very much. I have it now.
I really appreciate your attention.
Bye
Isaac_cm
1 Oct 2007, 4:34 AM
I hope to see a new update that support Ext 2 alpha
Thanks
violinista
1 Oct 2007, 6:26 AM
Yes, I'm interested for it too.
cheers
Isaac_cm
1 Oct 2007, 11:15 AM
Is there a tutorial for creating the plugin ?
immu2k1
3 Oct 2007, 9:15 AM
fercho07, parel: I updated the install information at top of this thread. If it is installed correctly you should check the following areas:
1) Help | Help Contents - This opens Aptana's Help window. Click on "Aptana IDE Help", expand "Reference" and then "Ajax Libraries". You should see "Ext 1.1". Click on that and it will bring up the ext Documentation Center.
2) File | New -> Project. This opens the New Project wizard. Select "Ajax Project, Ajax Library Project" and click NEXT. Type in a project name, and click NEXT. You should see Ext 1.1 in the list of Ajax libraries to check.
3) The "Samples" tab in the Aptana Perspective has an "Ext 1.1 Samples" folder listed. These are the examples from the ext documentation.
-Mike
Hi Mike,
I can't seem to get this plugin picked up at all when using Aptana as a plugin in my eclipse.
1.) I downloaded the zip file
2.) extracted it in my ..eclipse/plugins directory in a folder with the same name as the zip file (eg. com.extjs.ext.1.1_1.1.0.00002)
3.) closed and re-started eclipse
4.) went to create a new "AJAX Library Project" but I just don't see "ExtJS" as an option - I see all other ones yui, mochikit etc.
Any idea what I'm doing wrong?
Thanks
mkidder
5 Oct 2007, 9:38 AM
Isaac_cm, violinista: Working with Aptana on a ExtJS 2.0 Alpha 1 plugin. Technically, I have it working the same way as the 1.1 plugin, but want to package this up to install via Aptana's (Eclipse's as well) "Software Updates | Find and Install" within the app.
immu2k1: What OS, version of Eclipse, Aptana build, etc? I have tested on latest download of Eclipse 3.3.1, Aptana 0.2.9.17048 running on Windows XP without issue.
awmaximus
9 Oct 2007, 3:51 PM
Hi Mike,
I can't seem to get this plugin picked up at all when using Aptana as a plugin in my eclipse.
1.) I downloaded the zip file
2.) extracted it in my ..eclipse/plugins directory in a folder with the same name as the zip file (eg. com.extjs.ext.1.1_1.1.0.00002)
3.) closed and re-started eclipse
4.) went to create a new "AJAX Library Project" but I just don't see "ExtJS" as an option - I see all other ones yui, mochikit etc.
Any idea what I'm doing wrong?
Thanks
Not work in Aptana 0.2.0.10299.
Step 4 fail.
Not exist option "ExtJS" in "AJAX Library Project".
Andrew
jord1242
1 Nov 2007, 9:06 AM
http://aptana.com/dev/index.php/Adding_support_for_a_new_Ajax_library
I was going to follow the steps to package up Ext 2 for Aptana so that it had code support and snippets, etc. but don't really have the time now. Did someone already do this? If not, is someone working on it now? I can try it soon but not if someone is already in the middle of it.
JJ
jord1242
13 Nov 2007, 8:32 AM
so is there any news on anyone doing anything to get Ext 2 into Aptana? Any work in progress? I am itching to get these two great tools together, and so far have been unsuccessful.
Thanks,
JJ
dotnetCarpenter
3 Dec 2007, 5:28 AM
I haven't heard anything...
AlexRichardson
3 Aug 2008, 10:35 PM
Wouldn't it be cool if mkidder's code assist plugin could infer the the "Ext type" of a variable. The example below illustrates what I'd like to do.
var el = Ext.get("some-div");
el.on("click", showHelloWorldMessage);
When I type el. I would like code assist to pop up and give me the options of: on, remove, set, getHeight, etc.
Maybe this is already done, and I just don't have it setup correctly. If it isn't, I could look into adding this since I have some time before school starts.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.