CFBuilder tip: Opening a file from outside the editor works as you'd expect!
Note: This blog post is from 2009. Some content may be outdated--though not necessarily. Same with links and subsequent comments from myself or others. Corrections are welcome, in the comments. And I may revise the content as necessary.I want to start sharing some tips for working with CFBuilder. Most will be oriented toward those new to it, who had not used (or stuck with) CFEclipse before, but this one may surprise even those folks.
It's safe now to have CFBuilder set as the default program for all CFM and CFC files. Opening a file from outside the editor (when you already have CFBuilder open) will NOT open an entirely new copy of CFBuilder (as it did with CFEclipse). It will just open a new tab in the editor already open, as you'd expect. (This applies only to the standalone edition of CFBuilder, not the plug-in version.)
Explanation:One of the annoyances that some had with using CFEclipse (though it was really an Eclipse problem) was that if you already had the editor open, and for some reason chose to open another file from outside the editor (such as from within Windows Explorer), it would launch an entirely new (full) copy of the editor (workbench). Yikes.
Folks used to Dreamweaver, HomeSite, CF Studio (and indeed most editors) would have expected instead that it would just open a new tab for the new file. That behavior was annoying enough for some (due to their dominant workflow) to keep them from sticking with CFEclipse (or other Eclipse-based editors).
Thankfully, that problem has been (quietly) solved by the CFBuilder team. I've not seen too many make much of this, but it's one of those little things that can make a big difference. To be clear, this is only in the Standalone edition that they've built, which packages an Eclipse base and the plug-in on top of that. Obviously that allowed them to solve this problem in a way that other base eclipse implementations do not.
Not about using Eclipse's File Explorer view
Now, I realize that some readers will be aghast that someone would care about this. Why aren't you using projects? Or why not at least use the available File (or File Explorer) view, if you don't want to use the project-based Navigator?
But that's not the point. We're not talking about an alternative to projects, nor about opening the files from within Eclipse/CFBuilder at all. We're talking specifically about opening files from outside the editor. It may not be a workflow you'd ever use, but there were plenty who did use it, for whatever reason. Just nice to see this solved for them.
In fact, if you haven't noticed, Adobe even offers during the installation of CFBuilder (standalone) to have it mark the operating system to default to opening CFM and CFC files using CFBuilder. That's a nod to this feature now working as expected.
So thanks, Adobe, for solving it. And to those who have held this as a knock against Eclipse-based editors, it's just one more reason to reconsider the move to ColdFusion Builder.
More to come, here and in my daylong CFUnited class, "Getting Started with CFBuilder"
If you're looking for more such tips, keep an eye here. More than that, if you'd like to spend a day getting immersed in an introduction to CFBuilder from the perspective of one coming from other editors, come to my daylong class being held on-site the day before CFUnited, August 11. It's one of several such daylong classes being organized by (and available for purchase separately from) CFUnited.
More on the class in my previous blog entry or at the class detail page.
For more content like this from Charlie Arehart:
Need more help with problems?
- Signup to get his blog posts by email:
- Follow his blog RSS feed
- View the rest of his blog posts
- View his blog posts on the Adobe CF portal
- If you may prefer direct help, rather than digging around here/elsewhere or via comments, he can help via his online consulting services
- See that page for more on how he can help a) over the web, safely and securely, b) usually very quickly, c) teaching you along the way, and d) with satisfaction guaranteed
The good news is that I can confirm that's not happening with the public beta build. I just tested it, opening a file in a directory where I could see what files were there, before and after opening a file and even closing CFBuilder.
Perhaps it happened in earlier betas and I'd not noticed it. In fact, now that you mention it, I am finding them in various places (with older dates on them). Perhaps that was a facet of how things worked in Eclipse (whether in Bolt, FlexBuilder, or other Eclipse implementations) before the CFBuilder team resolved the problem.
Let me know if this is what you meant and indeed if the problem is resolved for you now. BTW, one doesn't need to have chosen that option during installation to test this. In Windows at least, you can just right-click a cfm file (in Windows Explorer or My Computer) and choose "open with" to pick CFBuilder. When it opens the file, do you see the remnants in its directory?
So this feature described above is for the standalone version only. I'll modify the blog entry to clarify that for those who many not read comments. :-) Thanks for asking.
Anyone had similar issues?
I suppose it's possible, though, that you previously had both CFB and Eclipse. I have heard that the CFB updater updates the last one installed. I suppose if you had CFB on Eclipse as a plugin, then it would update that.
Even so, that's not quite "CFB standalone being turned into a plugin". Does this help at all?
After installing Update 1 (prompted by the Adobe Updater) when I launch CFB (from C:\Program Files (x86)\Adobe\Adobe ColdFusion Builder\CFBuilder.exe) the Eclipse splash screen appears and the title bar of the program has the Eclipse icon and says "Eclipse Platform"
I'm considering deactivating, uninstalling and reinstalling to see if that makes a difference.
So first, if you try to change perspectives (Window>Open Perspective>Other), does it list ColdFusion at all? If not, then that's really odd. If it is there and you select it, are things back to as you'd expect?
That doesn't change it showing CFBuilder in the title bar, I realize, so something does sound odd. Still, can you open your past projects? Does the CF editor open? If so, at least then you may not need to uninstall/reinstall, but I can appreciate that you may want to.
It is indeed odd. I've not heard of it happening. Anyone else?
All that said, I'll again say that this thread is not the place for us to address any and all CF Builder problems. :-) That's really what the Adobe forum for it is for: http://forums.adobe....
Still, I'll look forward to the conclusion to your issue being shared here if you/others find it.
Also, today I uninstalled (and deleted any remaining files from the install folder) then reinstalled from the CD and after updating the same thing is happening again.
I know this is something that would be better posted on the Adobe forum however I originally posted here because when I try to open a cfm/cfc file from outside the editor it does not open in a new tab (a new instance of eclipse starts and says the workspace is in use).
I'm afraid this really is something you need to take to the Adobe forums, though. You're not getting any responses from others here, and I'm out of ideas. The Adobe team (and many others) do watch the Adobe forum, so hopefully they'd jump in to help (no guarantee, of course).
I'd be very clear in your description about how you had CFB working, did the update (CFB, not an Eclipse update) following the instructions from Adobe, and had this happen. And that an uninstall and reinstall worked, until again you applied the CFB update. Perhaps they may suggest other steps to follow.
(A common troubleshooting suggestion is to launch the program from the command line with the -clean option. In your case, cfbuilder.exe -clean. I'm not inclined to think that will help, since your initial install did work. But before you report to the forums you may want to at least try it and indicate if it still doesn't help.)
Hope you resolve it.