Mark Drew (Redux)- cf_etc...

a compendium of railo, cfml, cfeclipse and technology topics

Mark Drew (Redux)- cf_etc...

Entries Tagged as eclipse

Eclipse Ganymede: Colaborative development with Cola

June 25, 2008 · 12 Comments

With the imminent release of the next version of Eclipse called 'Ganymede', I thought I would have a look at some of the upcoming features. The first feature that caught my eye was "Cola", which provides Real-Time shared editing of a file. I have seen this before but not done in such a nice way. Check out the video below:

Cola: Real-Time Shared Editing from Mustafa K. Isik on Vimeo.

12 CommentsTags: eclipse

Aptana moves to the server side

January 23, 2008 · 5 Comments

Those clever folks at Aptana famous for their IDE and Eclipse plugins for JavaScript/Ajax, HTML and CSS have released Jaxer, The Ajax Server:
...Jaxer changes all that. Jaxer is the world's first true Ajax server. HTML, JavaScript, and CSS are native to Jaxer, as are XMLHttpRequests, JSON, DOM scripting, etc. And as a server it offers access to databases, files, and networking, as well as logging, process management, scalability, security, integration APIs, and extensibility
You can get it as part of the IDE or download the standalone server, for Windows, Mac and Linux. I dont find this surprising really, since Paul Colton, the CEO and founder is the man behind JRun! Awesome stuff, and I hope to get some examples up to show you soon!

5 CommentsTags: ajax · apple · eclipse · webdev

Using keyword substitution in Subversion

January 11, 2008 · 6 Comments

When I previously used CVS, I was able to put in my code some keywords that I wanted to substitue, such as the checkin date, who had checked it in, which version it was etc. I have had a hell of a time finding out how to do this in Subversion (SVN). Thanks to a link sent to me by Tom Chiverton, I managed to figure out how to do it via Eclipse. First of, read the manual, especially the svn:keywords section. So, lets say I want to put the following in my headers: Author: $Author$
Date: $Date$
Revision: $Revision$
So in CFEclipse/Eclipse enter that in a file and check it in to your repository, nothing happens right? No changes to the file happen, we must first set the properties for that file (or group of files): 1. Right click on your file and do Team -> Set Property 2. Select the "svn:keywords" property from the drop down 3. In the text area add (without the quotes) "Date Author Revision" 4. Check in the file and reload when it asks if you want to reload the file (since SVN has changed it) TADDA!!! Your file should look like this now: Author: $Author: mark.drew $
Date: $Date: 2008-01-11 15:03:22 +0000 (Fri, 11 Jan 2008) $
Revision: $Revision: 2076 $
I hope that helps!

6 CommentsTags: eclipse · webdev

Sending complex objects through webservices using ColdFusion

November 18, 2007 · No Comments

Title: Sending complex objects through webservices using ColdFusion Using web servies with ColdFusion is pretty simple most of the time, you create a webservice object and then call the methods on that object, for example: <cfset ws = CreateObject("webservice", "http://localhost/someservice/?wsdl")>
   <cfset aResults = ws.doSearch("find something")>
This is all fine and dandy if you have to pass a simple string or many other things, but what happens if, as I am having to do at the moment, you need to call a method that takes an object as a parameter? Sometimes, looking at the WSDL of the webserive isn't enough to tell you how to create an object to send to the webservice. First of, a simple way of creating an object is with a struct, so if you had to send an parameter (lets say, SearchQueryTO) you can create it as follows: searchQuery = StructNew();
   searchQuery.params = "find Something";
   searchQuery.resultCount = "10";
   //Do a search with the object...
   results = ws.doSearch(searchQuery);
The searchQuery struct above now gets automagically translated into the SearchQuery object that the webservice requires, all fine so far, but recently I got stuck with trying to pass some data back to a webservice. The WSDL said that it was an array of SearchCriteriaTO's but no matter what I did (create Arrays etc) it wouldn't accept it. In the ColdFusion server, all webservice calls generate java classes or "stubs" using a little Apache Axis library called wsdl2Java (imaginative eh), these stubbs are what you are actually calling from your code to connect to the webservice, since I didn't know EXACTLY what I had to call, you can do the following:
  • Zip up the stubbs for your service, they are held in /stubs/ and there will be a "WSxxxxxxx" folder where the x's are a number. Delete them all and make a call to your miscreant webservice to see the folder generated for the stubbs
  • In Eclipse, create a new Java Project, you wont be doing any actual java but it just will help so that you can import the zipped stub folder
  • Right click on the project, and select Java Build Path
  • Click on the Libraries tab and select "Add External Jars..." and select the zip that you created of your stubs and click ok
  • In your project you should now expand the "Referenced Libraries" node and you will see all the java classes that make up your webservice
The problem I had was that I didn't know, even from the WSDL, how I was meant to send the array of objects, well, in my webservice, it had generated a ArrayofSearchCriteriaTO class, which had a "searchCriteriaTO" property that was an array, therefore I had to first create the ArrayofSearchCriteriaTO and then put all the search criterias into the property: //create the array that we will pass
   ArrayOfSearchCriteriaTO = StructNew();
   ArrayOfSearchCriteriaTO['searchCriteriaTO'] = ArrayNew(1);
   
   //create the objects that we will put into the array
   sc = StructNew();
   sc['attributeName'] = "name";
   sc['stringValue'] = "some value";
You notice that I used the ['property'] to create the keys in the array, I did this to be sure that the keys would retain their case, of course this is not essential, but I was just trying to make sure that I was hitting the right properties (since java is case sensitive).

No CommentsTags: coldfusion · eclipse · webdev

Missed CFEclipse at MAX?

October 20, 2007 · 2 Comments

If you missed my CFEclipse presentation at Adobe MAX Barcelona, João Fernandes has been kind enough to post up a video of my whole presentation! You can check it out here: http://www.onflexwithcf.org/index.cfm/2007/10/20/Using-Eclipse-for-ColdFusion-Development--Videos I had some problems getting the debugger working, and I realised later that it was simply that I named my project wrong and should have set up the mappings. Hope you enjoy it!

2 CommentsTags: adobe · CFConferences · coldfusion · eclipse · max · presentations

Eclipse, ColdFusion and Mark Drew, Synchronised?

July 09, 2007 · 8 Comments

A little twitter message from Kev got me thinking about something totally unrelated really, but it might explain a few things. Let me fill you in with a few facts first:
  • Eclipse just released version 3.3. Last year, at the same time, they released 3.2 and the year before that 3.1
  • Adobe's ColdFusion going to be 12 years old tomorrow (10th of July)
  • I am going to be 33 on the 11th of July
Take all these facts together and you start seeing a pattern! I share (nearly) a birthday with a technology I love. I work on CFEclipse which is built on the Eclipse platform, which releases a version for the last 3 years that matches my age, within two weeks of my birthday, hmm... this is real synchronicity at work here don't you think? Anyway, Happy (Early) Birthday ColdFusion, may Adobe keep releasing great software for many years to come! (just as a thought exercise, do you think they will release CF tomorrow???)

8 CommentsTags: adobe · cfeclipse · coldfusion · eclipse · personal

CFEclipse and Eclipse 3.3

July 03, 2007 · 14 Comments

At CFUnited 2007, I did a couple of presentations showing CFEclipse, which at the end of the presentation I mentioned was actually running on Eclipse 3.3. Not bad going considering that Eclipse 3.3 was released on the day of my first presentation huh? The issue now is getting everything REALLY working, I did a number of smoke tests and even did a whole presentation running Eclipse 3.3 but there are some things I want to tidy and other changes I want to make before I do a release (just doing a compatibility release seems a waste of time at the moment, considering the effort involved!) So, what and when should you expect? Well, I am going to be checking in stuff this week, I only do checkins against an issue so I have to create the right ones (if they are not there). You should see more activity over at the CFEclipse Trac website. Also, if you are planning on adding a ticket to Trac, make sure there isnt one there already, I have spotted a few been adding about Eclipse 3.3 already, there is no need to add more! I want to send out a big thank you to Dean Harmon as he did all the Eclipse 3.3 compatibility including the backwards compatibility stuff. Now, stop saying that Adobe does nothing to contribute!!! So, there it is, a semi-official announcement... saying not much... but at least now you know.

14 CommentsTags: cfeclipse · cfunited · coldfusion · eclipse · presentations

What would you pay for? Should CFEclipse still be free?

April 13, 2007 · 48 Comments

Before I start, don't worry, I am not going to charge for CFEclipse, but I have been thinking about the costs involved in making CFEclipse and trying to see how I can at least raise a small percentage of those. To give you an idea of how many developer hours that go into CFEclipse, add up 2-3 man hours a day, every day, for about 6 years (I am using an average of number of developers that have been involved as well as frequency of coding), and lets say, they get paid a fair rate for a Java programmer (about ?40 an hour I think), thats about ?262,800 (thats about $516,402). Sit back and take that in, Half a million dollars...

[Read more →]

48 CommentsTags: cfeclipse · coldfusion · donations · eclipse

Getting to know FTP in CFEclipse

March 22, 2007 · 2 Comments

Scott Stroz has posted a little write up on how to use FTP/SFTP in CFEclipse, I know I should have done this before, but alas time is tight! Have a good read over at his blog

2 CommentsTags: coldfusion · eclipse

Watchmen: The Movie?!

March 21, 2007 · 4 Comments

If anyone knows me, they will know I am into my Graphic Novels, I am a big fan of Garth Ennis' Preacher (loved that series!), Hell Blazer (ok ok, Constantine you Hollywoodized Harlots!) Frank Miller (going to see the 300 this weekend, and no Spartan can stop me!) and the truly awesome Alan Moore. I just found out through the digg-vine that the director of the 300 will be making Watchmen! Check out the interview!. This leaves me both excited and scared. All recent attempts at Moore's films have turned out parodies that have completely missed the point of the original novel, Johnny Depp's stupid Laandaan accent in From Hell and the complete parody that was The League of Extraordinary Gentlemen. I can see why Frank Miller put a stop to any of that malarkey and only let Robert Rodriguez make Sin City by becoming a co-director of the film (and after Rodriguez made a short film to show Miller the potential). Now, I recently re-read (for like the 10th time) Watchmen, and its an interesting story with many subtleties and issues that I hope don't get completely lost. If you were to flick through Watchemen the visual style (all these over the hill superheroes) is not something that would look that alluring on film, or at least, something that could be completely done wrong. The back story of some of the characters really add to the story and that is what I think wont make it to the film, so I just hope that Zack Snyder will be able to translate such a big story. On another note, they will be making Preacher as a TV Series! Well done! A nine book epic such as this cant be turned into 90 minute film, no way, no how bubba. Of course, that is what they should be doing with World War Z, do it something like Band of Brothers format, but alas, looks like Brad Pitt is going for the easy money in a film version.

4 CommentsTags: eclipse