New CodeType Wizard
The New Scout CodeType wizard can be used to create a new code type classes. To start the wizard use Ctrl+N as described in section Scout Wizards.
or pressIn the case of Figure 1 the package org.eclipse.scout.apps.helloworld.shared.helloworld
has been selected in the Package Explorer. The wizard fields that then needs to be filled in manually are the Name, the First Argument and the Second Argument fields.
By clicking on the Finish button the wizard is started and the specified component is created.
Wizard Fields and Default Values
Most of the fields of the Figure 1 will be filled with default values depending on the current context of the IDE. The context can be derived from a package selected in the Package Explorer or from the class in the active Java Editor.
- Source Folder
-
The source folder of the Maven shared module used for the creation of the code type class. The default value is the
src/main/java
folder in the Maven shared module. - Package
-
The Java package that will contain the code type class. The Scout SDK will try to guess the package name from the current context.
- Name
-
The name of the code type class. According to Scout conventions the class name ends with the suffix
CodeType
. - Super Class
-
The super class for the form.
AbstractCodeType
is the default value. - First Argument
-
The class used to identify this code type.
- Second Argument
-
The class to identify individual codes within this code type.
Created Components
In the Figure 1 example shown above the Scout SDK will create the following components.
-
In Maven module helloworld.shared
-
The
MyCodeType
class in foldersrc/main/java
and packageorg.eclipse.scout.apps.helloworld.shared.helloworld
-
Go back to the Scout Wizards.
Do you want to improve this document? Have a look at the sources on GitHub.