Category: eclipse

Jun 25 2008

Eclipse Ganymede: Colaborative development with Cola

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 comments - Posted by Mark Drew at 1:37 PM - Categories: eclipse | development

Jan 23 2008

Aptana moves to the server side

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 comments - Posted by Mark Drew at 9:33 AM - Categories: apple | webdev | eclipse | ajax

Jan 11 2008

Using keyword substitution in Subversion

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 comments - Posted by Mark Drew at 2:54 PM - Categories: eclipse | subversion

Nov 18 2007

Sending complex objects through webservices using ColdFusion

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).

0 comments - Posted by Mark Drew at 4:21 PM - Categories: coldfusion | eclipse | webservices

Oct 20 2007

Missed CFEclipse at MAX?

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 comments - Posted by Mark Drew at 8:34 PM - Categories: coldfusion | eclipse | max | presentations | adobe | CFConferences

Jul 9 2007

Eclipse, ColdFusion and Mark Drew, Synchronised?

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???)

7 comments - Posted by Mark Drew at 3:32 PM - Categories: cfeclipse | personal | coldfusion | eclipse | adobe

Jul 3 2007

CFEclipse and Eclipse 3.3

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 comments - Posted by Mark Drew at 11:29 AM - Categories: cfunited | cfeclipse | coldfusion | eclipse | presentations

Search Archives

Contribute


MD on Twitter

Categories

coldfusion cfeclipse personal apple cfconferences ukcfug model-glue webdev blogging cfunited coldspring railo presentations adobe cfobjective scotch on the rocks reactor lost jobs ajax eclipse flex model-glue frameworks max google podcast podcasting reference ask md fusebox getrailo spam donations eventvalidation fusiondebug air blue dragon cloud development flying funny java microsoft music snipex tattoo tips apple aptana blog cfml cfml derby eventguard graphic novels itunes metrics open bluedragon rant wishlist apollo barcamp bolt cebit cfdevcon cfonwheels cfug codeshare codeswarm coldfusioncamp directing doh! firefox flash gadgets groovy hosting jquery mdc mvc ooops pownce quack regex spry subversion tashr transfer webservices xml

Monthly Archives