Source code generation in the visual editor

As you make changes to a visual class in the Design view, the Java source is updated. Likewise, as you edit the Java source, the graphical design view is updated to reflect the code changes.

The visual editor for Java is a source centric editor that reads and writes the .java source file. The round-trip updates between the Design view and the Source view are incremental.

When the visual editor for Java is closed, the only file that is persisted in the workbench is the .java file. Because there are no additional files that store metadata, you can make changes to the file in another editor, and these changes will be reflected in the visual editor when it is next opened. When the visual editor for Java is opened to determine the initial state of the Java beans, the file is parsed and analyzed for certain patterns. These are used to create a model of the Java beans and their initial property settings and any relationships between them. You can make modifications to the source and see these reflected in the Java bean's model as long as the source still adheres to the recognized patterns.

Parent topic: About the visual editor for Java

(C) Copyright IBM Corporation 1999, 2004. All Rights Reserved.