1. Download and install eclipse3.3Eclipse-SDK-3.3.1.1-win32.zip:
Http://www.eclipse.org/downloads/download.php? File =/Eclipse/downloads/drops/R-3.3.1.1-200710231652/eclipse-SDK-3.3.1.1-win32.zip
Decompress eclipse-sdk-3.3.1.1-win32.zip to a directory, such as D:/, and a D:/eclipsefolder is generated with eclipse.exe and two important folders plugins and features.
Run D:/Eclipse/eclipse.exe. In the displayed dialog box, select workspace, as shown in. Set it to D:/Eclipse/workspace, check the check box, and click OK to start eclipse.
Ii. Download plug-ins EMF, GEF, and ve [/B]
Eclipse3.3 must install the corresponding versions of GEF, EMF, and VE plug-ins to achieve visual programming. If the versions are different, the installation will fail. The following versions of emf-sdo-runtime-2.2.0, GEF-runtime-3.2, and VE-SDK-1.2 can meet your needs.
Emf-sdo-runtime-2.2.0.zip :( eclipse modeling framework) http://archive.eclipse.org/modeling/emf/emf/downloads/drops/2.2.0/R200606271057/emf-sdo-runtime-2.2.0.zip
GEF-runtime-3.2.zip :( graphical editing Framework)
Http://www.eclipse.org/downloads/download.php? File =/tools/GEF/downloads/drops/R-3.2-200606270816/GEF-runtime-3.2.zip
VE-SDK-1.2.zip :( visual editor)
Http://www.eclipse.org/downloads/download.php? File =/tools/ve/downloads/drops/R-1.2-200606280938/VE-SDK-1.2.zip
Iii. Install plug-ins EMF, GEF, and ve [/B]
(1) intrusive plugin installation method
The "intrusive plugin installation method" is the "copy" method. You only need to copy Eclipse/features and Eclipse/Plugins in the plug-in to eclipse/features and Eclipse/Plugins in the eclipse installation directory, this method is used in the article "visual Java interface design with Eclipse". However, this installation method has a serious defect and cannot be uninstalled after installation. That is to say, the installation process is irreversible, you cannot flexibly configure and manage the installed plug-ins. Therefore, we do not recommend that you use this plug-in installation method.
(2) non-intrusive plug-in Installation Method
The "intrusive plugin installation method" is the "Links" method. Decompress D:/clusters to the ve directory. The directory structure is shown in:
Create three text files in the links directory: VE. Link, gefruntime. Link, and EMF. Link. (In fact, three files can be named at will)
** File VE. Link content:
Path = D: // eclipse // myplugins // ve (absolute path)
Or
Path = myplugins // ve (relative path)
** Content of the file gefruntime. Link:
Path = D: // eclipse // myplugins // gefruntime (absolute path)
Or
Path = myplugins // gefruntime (relative path)
** File emf. Link content:
Path = D: // eclipse // myplugins // EMF (absolute path)
Or
Path = myplugins // EMF (relative path)
Change "/".
According to the Article introduction to eclipse3.2 and VE plug-in installation practices, three connection files can be merged into one connection file, that is, only one connection file can be created under the links directory, such as ve. link. The content is as follows:
Path = myplugins // ve
Path = myplugins // gefruntime
Path = myplugins // EMF
It turns out that the installation will not succeed, and only the emf-sdo-runtime-2.2.0 set for the last line can be installed.
4. embark on a visual programming journey [/B]
Start eclipse, create a project test, and click "visual class" under "new" in the toolbar. The "New Java visual class" dialog box is displayed:
In this dialog box, enter the class name. Here we enter "Notepad" and the visual class you want to inherit (in the style Outline View ). You can choose to inherit any interface components from swing or AWT. to inherit other types of classes, select "other" and click the [browse] button to select the class you want to inherit. Select the "frame" option under "Swing" to inherit javax. Swing. jframe, and click "finish" to see the visual editor interface.
You can start Visual Programming with "ve tool panel", "design window", "code window", and "attribute window ".