Join David Gassner for an in-depth discussion in this video Using Eclipse perspectives and views, part of ColdFusion 9 Essential Training.
ColdFusion Builder is an Eclipse plug-in. That means that it's a software component that's designed for use within a larger piece of software known as the Eclipse Workbench. Eclipse is a free software product that was originally built by IBM as a Java Development Environment but was donated to the Eclipse Foundation, a non-profit organization, and is now maintained as the platform on which many development products are delivered, including ColdFusion Builder and also Flex Builder, now renamed as Flash Builder.
It's important to know the vocabulary of Eclipse, so you can easily navigate around the ColdFusion Builder Interface. The Eclipse visual interface is made up of views. In Adobe software, these views are commonly known as panels. They serve the same purpose. Each view offers a certain amount of functionality. The views that are immediately available in ColdFusion Builder are called the Navigator view, which will show you a list of your files and directories, the File view, which is a file management tool, the Outline view that lets you navigate the object-oriented structure of your pages, the RDS Dataview and RDS Fileview, which allow you to navigate your ColdFusion server, the Snippets view, which lets you create and use reusable bits of code, and at the bottom of the interface: the Servers, Console, Problems, Tail view and Services Browser views.
Each of these views offers a specific bit of functionality. You can move the views around the screen by clicking-and-dragging on the tabs. For example, if I wanted to move to Navigator view, I could click-and-drag and you'll see that it re-docks itself to wherever I drag it. I'll bring it back to its original location and this time it ends up in a tabbed interface with the File view. If you don't need a particular view, you can click the X icon to close it and if you want to bring the view back, you can go to the Window menu and select Show View and choose the view you want to see.
The particular arrangement of views on the screen is called a Perspective. ColdFusion Builder is delivered with two built-in perspectives: the ColdFusion perspective, which shows you the Navigator, File and other views, and the ColdFusion Debugging perspective. To change perspectives, go to the menu and choose Window>Open Perspective>Other, and from there you can choose ColdFusion Debugging. You'll also see a number of perspectives provided for other types of development. The default delivery of ColdFusion includes another plug-in called the JDT or Java Development tools.
This is a free open-source plug-in and the perspectives you see here, Java, Java Browsing and Java Type Hierarchy are part of that plug-in. I will choose ColdFusion Debugging and click OK. And in the ColdFusion Debugging perspective, I see the Debug view, Variables, Debug Output Buffer, Breakpoints and Expressions view. I still see a number of the other views that were included in the ColdFusion perspective. Once you have switched to the ColdFusion Debugging perspective for the first time, you'll see a Perspective Selector Interface above the views and this makes it even easier to switch back and forth.
You can now click on ColdFusion or ColdFusion Debugging. And in any particular perspective, if you've moved your views around and you want to reset the original perspective, you can go to that perspective, then go to the menu and choose Window>Reset Perspective, and then click OK to confirm. And you will return everything back to the original screen arrangement. Finally, if you want to detach a view and un-dock it, say if you have a spammed monitor and you want to drag views over to another monitor, you can do it easily by right-clicking on the tab for the selected view and choosing Detached.
Once you've detached a view, you can move it around the screen and move it to a second screen if you have one. If you want to re-dock the view, right-click again on the tab and choose Detached again. The view will drop into place in whatever the software determines to be the most convenient arrangement. And then you can locate it and drag and place it back where you want it, or you can once again reset the perspective by choosing the menu selection Window>Reset Perspective. The Eclipse menu offers access to many of the commonly used features of both Eclipse and the ColdFusion plug-in.
When you're in the ColdFusion or ColdFusion Debugging perspective, you'll see the ColdFusion menu. As you explore the menu, notice that many of the menu choices have associated keyboard shortcuts. While there are ways of modifying these keyboard shortcuts, for the most part you will use them as is. The keyboard shortcuts are different between Windows and Mac. For example, the Run command, shown here, can be accessed with the keyboard shortcut Ctrl+F11 on Windows, or Command+Shift+F11 on Mac.
Sometimes the differences have to do with how certain keyboard shortcuts are already taken by the Mac OS X operating system, but are available on Windows. Once again, explore the menus and find the keyboard shortcuts that make the most sense for you. So that's a quick tour of the Eclipse and ColdFusion Builder Interface. Once again, ColdFusion Builder is a plug-in built on top of Eclipse. If you decide to use the ColdFusion Builder plug-in, you'll have the most success using Eclipse version 3.4.
If you use a different version of the Eclipse Workbench, you might see some differences in keyboard shortcuts, menu sequences and other aspects of the Eclipse Interface.
- Using ColdFusion Builder to define a default page template
- Defining a data source with ColdFusion Administrator
- Creating data access ColdFusion Components (CFCs) in ColdFusion Builder
- Using ColdFusion ORM (Object Relational Mapping)
- Applying dynamically developed URLs to datasets
- Validating data entry forms and defining client-side validation rules
Skill Level Beginner
Q: While trying to build a dynamic site as instructed in the ColdFusion 9 Essential Training title, an error occurred when setting up the Date & Services > Data Sources page as shown in the "Defining a data source in ColdFusion Administrator" movie:
Connection verification failed for data source: dw_bookstore. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Also, attempts to connect to the database using phpMyAdmin were not successful. Is there a fix to this problem?
A: If the connection to phpMyAdmin is not working, starting over with the installation of MySQL is the best bet. Uninstall WampServer, then reinstall and set up the database again. If that software is not working, the connection to the database from will not be possible from ColdFusion.