An Architect's View

CFML, Clojure, Software Design, Frameworks and more...

An Architect's View

Entries Tagged as cfeclipse

Frameworks Explorer on CFEclipse TV

May 10, 2007 ·

Mark Drew has posted a new video introducing the Frameworks Explorer on the CFEclipse TV page. If you haven't seen this great new plugin, check it out! I'm finding it invaluable every day!

Tags: cfeclipse · coldspring

Like Frameworks? You'll Love This!

May 05, 2007 ·

Mark Drew has released the Frameworks Explorer plugin for CFEclipse (codenamed "Project: Unity"). This is an incredible piece of work! It lets you graphically browse and edit your framework configuration files, jumping to parts of the file, adding new nodes etc. Completely generic, XML-powered. Amazing! Buy that man a bottle of JD! Buy him several!

Tags: cfeclipse · coldfusion

cfcUnit Facade for CFUnit Plugin

April 20, 2007 ·

I've posted the facade CFC that lets you use cfcUnit with the CFUnit plugin for CFEclipse to the 'SOFTWARE' pod on my blog. First, if you haven't already done so, install cfcUnit. Second, if you haven't already done so, you need to install the new CFUnit plugin. In Eclipse, Help > Software Updates > Find and Install... and search for new features on the CFEclipse update site. You should see a CFUnit 1.0.4 plugin. Install that and restart your workspace. Third, download my facade CFC and put it somewhere that is web accessible (I put mine in my webroot). Then configure the CFUnit plugin to use that location, under Window > Preferences > CFEclipse > CFUnit. Specify the URL to the directory containing the CFEclipseFacade.cfc you just downloaded. Finally, open the CFUnit view (Window > Show View > Other and select it from the CFML section). Now you can enter a CFC path - or search for CFCs - and run them directly in Eclipse.

Tags: cfeclipse · coldfusion · tdd

cfcUnit and Eclipse integration

April 19, 2007 ·

After my post about jUnit, decided to have a look at how CFUnit integrates with Eclipse to see how easy or how hard it would be to make it work with cfcUnit. First off, the CFUnit code is Windows-centric, assuming expanded file paths contain \ instead of testing for both \ and /. That was an easy fix but I really wish ColdFusion developers would think about this issue when they're providing code for others to use! Second, the Eclipse facade for CFUnit has pretty much zero documentation and next to no comments so it took me a while to figure out that it assumes the facade is actually a test listener. Once I'd figured that out, it was relatively straightforward to convert it over to work with cfcUnit. Up to a point.
Update: I have a fully operational facade CFC for cfcUnit that works smoothly with the CFUnit plugin. I've sent a copy to Robert Blackburn to review and also to Paul Kenney. Once I have their feedback, I'll post the CFC here for folks to download (in a post containing instructions on how to set it up).

Tags: cfeclipse · tdd

Eclipse and jUnit

April 18, 2007 ·

I'm doing some consulting right now that has me writing Java code. The more Java I write, the more I'm reminded of why I like ColdFusion so much but that's another story. The company I'm consulting for likes unit testing, which makes me very happy. They actually require that a unit test exists for every method in every class (and in every CFC - yes, they build stuff with ColdFusion as well). Surprisingly, this is my first exposure to jUnit. Yeah, I know, I'm such a big fan of cfcUnit, how can I never have used jUnit? Anyway, I write my TestFoo.java class with its setUp() and tearDown() methods and start writing testMyMethod() methods. Then it occurs to me: how do I run this? I'm so used to the browser-based runner for cfcUnit that I'd never thought about the Java equivalent. Out of curiosity, I right-clicked in the editor panel displaying the test case and there, in the Run As... submenu: JUnit Test. Wow! Really? Could it be that simple? Yup! Up pops a JUnit view in the bottom panel running my tests and showing a red failure bar and list of failed tests. Perfect! Well, of course my tests failed - I just wrote the tests. Next I'll write the code. As is so often the case, Eclipse continues to surprise me in pleasant ways! Now, where's the cfcUnit plugin?

Tags: cfeclipse · programming

CFEclipse and FTP

March 21, 2007 ·

One of the recent advances in CFEclipse has been the full overhaul of FTP/SFTP support in the File Explorer. Scott Stroz has an excellent overview blog post about FTP, showing exactly how easy it is to set up and use "just like HomeSite".

Tags: cfeclipse · coldfusion

CFEclipse updated (and updated)

March 09, 2007 ·

In a flurry of small updates this week, Mark Drew has been fixing a number of CFEclipse bugs and adding some neat enhancements, including lots of FTP/SFTP goodness in the File Explorer (traditionally one of Eclipse's real weaknesses for many of us). You'll definitely want to update. Read more details about the underlying 1.3.1 release on Mark's blog.

Tags: cfeclipse · coldfusion

Big CFEclipse Announcement at cf.Objective()!

February 28, 2007 ·

Another reason to go to cf.Objective(): Mark Drew will be announcing (and demonstrating) a top secret project that "is so amazing, I am asking Jared to fit seat-belts to each of the seats as I am sure when I show this off, people *WILL* fall off their chairs.", says Mark. He also says the "few people I have shown it to have been very impressed" - I am lucky enough to be one of those few and, yes, this will blow people away.

Tags: cfeclipse · cfobjective · coldfusion

PHP IDE Choices

February 26, 2007 ·

A common discussion in the ColdFusion community is around which IDE to use and how available IDEs reflect on the language itself. For ColdFusion, the choice is essentially between Dreamweaver at $399 (or HomeSite+ which ships "for free" on the Dreamweaver CD - essentially ColdFusion Studio for $100 less than it used to cost) and CFEclipse, the free plugin for Eclipse. Which you choose depends on whether you are primarily doing visual development (layouts and design etc) or back end development - although I use both (the right tool for the right job etc). With that in mind, it's interesting to see that Code Gear has just announced Delphi for PHP - an IDE built with Delphi (and inspired by the existing Delphi IDE) but for PHP developers. It's Windows-only right now (because Delphi is Windows-only - BTW, HomeSite / HomeSite+ is a Delphi application which is why it too is Windows-only) and will cost $299. That places it in pretty much direct competition with Zend Studio which also costs $299. Zend Studio is cross-platform, which is a big plug, and of course there is also the free PDT (PHP Development Tool) plugin for Eclipse.

Tags: cfeclipse · oss

Testing in CFEclipse

February 26, 2007 ·

I'm talking about simple testing here - you know, when you change a file and then switch from Eclipse to your web browser and reload the page to see if you broke anything? Did you know that CFEclipse has a built-in web browser? Just hit Cmd-Shift-F5 (on a Mac - Ctrl-Shift-F5 on Windows?) to load the project root URL in the built-in web browser or Shift-F5 to load the current page in the built-in browser. While you're working on that page, you can easily re-run the test in the browser using F5 to reload the browser. Edit, Cmd-S (Ctrl-S on Windows), F5, edit, Cmd-S, F5. What a nice, simple workflow. All you need to do to make this work is set the project root URL:
  • Right-click on the project in the Navigator and select Properties
  • Select CFEclipse Properties
  • Enter the project root URL, e.g., http://localhost:8500/
  • Click OK
Now hit Cmd-Shift-F5 to open the built-in browser at your project. Want to test out an idea without actually editing your project's files? Check out the "scribble pad" feature. Under Window > Preferences... > CFEclipse > Scribble pad define a file to use as a quick test bed for ideas. Define the path to the file, the project it lives in and the URL to it and then hit F8 to open the file (it has to exist so you might need to create an empty file in the appropriate location first). CFEclipse opens your scribble pad file in the editor and in the browser. Edit, Cmd-S, F5 and you're testing out your idea without touching your project's files! Simple testing made easy with CFEclipse!

Tags: cfeclipse · coldfusion