Install eclipse and VE from scratch

Source: Internet
Author: User
Tags sdo

Recently, some people have encountered many strange problems when installing visual editor. Therefore, this article is intended to be helpful to those who need it.
Start installation. (There are many installation methods. The following is only one of them)
Preparations:
1. Download JDK (JDK 5_0_09 );
2. Download eclipse (3.2.1). (I prefer the latest version ^-^)
3. Download EMF, GEF, and VE (1.2.1 );
Start installation:
1. Install JDK;
This is relatively easy. For standard Windows Installation programs, click Next. After the installation is complete, no restart is required.
2. Install eclipse;
Eclipse is a green software. You do not need to install it. You only need to decompress it and then run it.
For ease of instruction, I decompress it to the C root directory to get the c: \ eclipse directory and run c: \ eclipse \ eclipse.exe.
NOTE: For the following installation, you must first close the eclipse program.
3. Install EMF, GEF, and VE;
For eclipse, these are their plug-ins, so the installation methods are the same.
A. Under the c: \ eclipse directory, create four subdirectories: C: \ eclipse \ EMF, c: \ eclipse \ GEF, c: \ eclipse \ ve, and C: \ eclipse \ links;
B. decompress the downloaded EMF, GEF, and VE files to the corresponding directory. That is, decompress the EMF compressed package to c: \ eclipse \ EMF to obtain C: \ eclipse \ EMF \ eclipse directory, and so on, decompress GEF and VE;
C. In the c: \ eclipse \ links directory, create a text file named link.txt.
Add the following three lines of text to the link.txt file:
Path = EMF
Path = GEF
Path = ve
Note: The relative path is used here. You can also extract EMF, GEF, and ve to other places and use the absolute path.
4. After the installation is complete, run eclipse again. When started, it will automatically find all text files in the links directory and load all the plug-ins pointed to by path. Here, of course, VE is included.
A. If you are not sure whether the file has been loaded, choose help> Software Updates> Manage configuration to open the product configuration form. In the tree column on the left, you can see the loaded plug-in.
B. If the load fails, you can use eclipse-clear to run the program.
Use ve to write a hello:
1. Create a project;
File-> New-> project ..., select "Java Project", click "Next", and enter a Project name: Hello. All others are default. Press ENTER or click "finish.
2. Set the SWT library;
A. Select project hello, right-click the menu, and open the Properties dialog box.
B. Select Java build path in the tree on the left. On the settings page, select the Libraries page and click "add library ...";
C. In the open add library dialog box, select Standard Widget Toolkit (SWT) and next;
D. In the open SWT library Options dialog box, check "include support for jface library" and finish.
E. Return to the properties dialog box and click OK.
3. Create a Hellworld. Java file;
A. Select project hello, right-click the menu, choose new> other... (or click the new icon in the toolbar), open the select a wizard dialog box, and select Java/visual class and next;
B. In the open Java visual class dialog box,
In the package, enter com. cnblogs. Pan;
In name, enter helloworld;
In Style, select SWT/shell;
Check public static void main (string [] ARGs );
Finish.
4. At this step, we should be able to see the form. Those controls are all in the palette and can be seen by clicking on them.
A. Right-click the form, select set layout, and then select null (this is my habit)
B. Select a button from the palette and draw a button anywhere in the form. In the Properties window below, set the text to clickme;
C. Select this button, right-click and select events-> Add event. In the displayed dialog box, select widgetselected on the left and finish.
D. At this time, the cursor will automatically locate the corresponding position of the program. We will add the following statement to the program:
Public void widgetselected (Org. Eclipse. SWT. Events. selectionevent e ){
System. Out. println ("widgetselected ()");
Messagedialog. openinformation (null, "hello", "Hello world! "); // Add this statement
}
E. Save the program and click Run> Run as> JAVA application. Say hello to the world!

From: http://www.cnblogs.com/pantian/archive/2006/10/30/544584.html

========================================================== ====================================

I don't know which version of eclipse you are using? 3.4 does not seem to have an appropriate ve
If it is 3.3, I can follow the following method (you can search for it online ):

Eclipse tool project mainly uses Graphical Editor framework (GEF) project, EMF, VE. I have suffered a lot ...... of course, you want to use eclipse's visual edit project plug-in. I downloaded ve1.2.3 because ve can only work with the corresponding versions of GEF, EMF, and eclipse sdks.

The names of the downloaded files are:

Eclipse-SDK-3.3-win32

Emf-sdo-runtime-2.2.0

GEF-runtime-3.2

VE-runtime-1.2.3

VE-SDK-1.2

You can download it at the following address:

Http://download.eclipse.org/tools/ve/downloads/drops/R-1.2-200606280938/index.html

Eclipse-SDK-3.3-win32:

Http://www.eclipse.org/downloads/download.php? File =/Eclipse/downloads/drops/R-3.2-200606291905/eclipse-SDK-3.3-win32.zip

Emf-sdo-runtime-2.2.0:

Http://www.eclipse.org/downloads/download.php? File =/tools/EMF/downloads/drops/2.2.0/r200606271057/emf-sdo-runtime-2.2.0.zip

GEF-runtime-3.2:

Http://www.eclipse.org/downloads/download.php? File =/tools/GEF/downloads/drops/R-3.2-200606270816/GEF-runtime-3.2.zip

VE-runtime-1.2.3:

Http://www.eclipse.org/downloads/download.php? File =/tools/ve/downloads/drops/R-1.2-200606280938/VE-runtime-1.2.3.zip

VE-SDK-1.2:

Http://www.eclipse.org/downloads/download.php? File =/tools/ve/downloads/drops/R-1.2-200606280938/VE-SDK-1.2.zip

Decompress eclipse SDK 3.3, copy the decompressed eclipse folder to E: \ eclipse to see the content inside, mainly plugins, features and so on, and then decompress the emf-sdo-runtime-2.2.0 to E: \ eclipse \ EMF folder, GEF-runtime-3.2 to E: \ eclipse \ GEF, VE-runtime-1.2.3 to E: \ eclipse \ veruntime, VE-SDK-1.2 to E: \ eclipse \ vesdk. Create the links folder under the E: \ eclipse folder (I am using E: \ eclipse \ links ). Create four extension names in the links folder. link text file, which I created: EMF. link, GEF. link, veruntime. link, vesdk. link, the four text files (the suffix must be *. link.

In the EMF. Link file, enter Path = E: \ eclipse \ EMF
In the GEF. Link file, enter Path = E: \ eclipse \ GEF
In the veruntime. Link file, enter: Path = E: \ eclipse \ veruntime
In the vesdk. Link file, enter Path = E: \ eclipse \ vesdk

Saved.

Eclipse 3.3 requires JDK 1.4.2 and later versions. Therefore, you need to install it first. The JDK path setting will not be mentioned again... \ bin, \ Lib, \ jdk1.4.2

Because the program running SWT uses the local library, you should import the native package of SWT, and the running program can be found automatically. Now it is OK to start eclipse. Eclipse can automatically recognize your JRE.

Practice! Start eclipse and look at myproject. it's good... the interface is charming! Create a Project File> New> project. In the Project Wizard, select Java project. -> next, enter the Project name: myproject. Eclipse automatically creates a workspace work folder for you. Your project exists here. F: \ hongjun \ eclipse \ workspace click to finish. A new project is built. add SWT toolkit, choose Project> properties, select Java build path on the left, select the libraries tab on the right, click Add library, select Standard Widget Toolkit (SWT), and click Next, select include support for jface library. in this way, you can use the SWT jface control. select your project myproject. select the new icon button, the top left. select visual class and click Next. source folder is the default project folder. Set package to lihongjun and name to hello. Expand SWT on the left and select shell, check public static void main (string [] ARGs), constructors from superclass, inherited abstract methods. end.

Eclipse automatically starts ve .... look at those windows... familiar .. the visual editing window is displayed. move the cursor to the right palette (The vertical one) and place a label, a button, and a textarea on the shell. select the label and set it in the properties attribute bar on the lower side. Enter> text in the label field. Select the button and set it in the properties attribute bar on the lower side. Enter "Hello everone" in the text field. right-click the button and choose events> Add events. select mouse-> mousedoubleclick. the corresponding code is automatically generated. you can also set other styles. However, if the JDK version is incorrect, you cannot perform operations or perform operations.

From: http://topic.csdn.net/u/20081121/16/6a393d5c-b7bb-4746-9710-8f9ae86ceecd.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.