IDE Customization Guide


Table of Contents

1. Writing Wizards
Motivation
Overview
Template Processing
Defining the GUI
Using the IDE
Editing XSWT Files
Editing Template Files
Writing an Example Wizard
Configuring the Wizard
Creating a New Wizard Page
Creating Templated Files
Wizard Types
New Project Wizards
New Simulation Wizards
New INI, MSG or NED File Wizards
New Simple Module Wizard
Import Wizards
Export Wizards
New Wizard Wizard
Configuration Keys
Templates
Generating multiple files
Conditional file creation
Custom Wizard Pages
XSWT Forms
Binding of Template Variables to Widgets
Conditional Pages
Conditional Widgets
Extending the Wizards in Java
Creating Wizard Pages
Creating Custom Widgets
Extending your Template with Custom Classes and Widgets
Extending the Template Processing
Common Pitfalls
XSWT Tips and Tricks
Appendix A - Widgets in XSWT
Standard SWT widgets
Custom widgets
Appendix B - Predefined Template Variables
General
Template information
File name related variables
Project name related variables
C⁠+⁠+ project control
NED files and message files
Variables specific to New Simulation wizards
Variables for New Wizard generation
Miscellaneous
Appendix C - Functions, Classes and Macros available from Templates
Custom Macros and Functions
Math
StringUtils
WordUtils
CollectionUtils
FileUtils
NedUtils
IDEUtils
LangUtils
ProcessUtils

List of Figures

1.1. The New Wizard wizard
1.2. The File | New menu
1.3. Editing an XSWT file