Declarative programming

RapidClipse allows you to define the graphical user interfaces in XML. RapidClipse can use the XML files to automatically generate UIs and views in the GUI builder as well as the matching Java code.

Show XML files in Project Management

To describe interfaces in XML, you must add them to the Project Management.

  1. Click Project management and then.
  2. Select Filters...in the following menu. 
  3. Select the last option UI Files (.ui.xml) .
  4. Click on OK.
Result:
  • For each UI component, you can display the respective XML file in Project Management > User Interface, e.g. MainUI.ui.xml.

Edit XML file

To edit the XML files, RapidClipse offers an XML editor, and, alternatively, a tabular view (Design).

  1. Select the XML file you want to edit in Project Management > User Interface; e.g., MainUI.ui.xml.
  2. Select the view in which you want to edit the XML document, Design or Source.
  3. Make the appropriate changes.
  4. Click Save.


Note:
  • Changes to the XML file will only be applied in the GUI builder and the Java code after saving.
  • Matching Java and XML files must always be in the same package.