Projects
Projects Functions
| getProject | Projects.getProject( projectName ) | Returns the Project with name projectName. |
| setTheme | Projects.setTheme( theme ) | Changes the Theme for all the Projects in the Workspace. |
| getProject | Projects.getProject( projectName ) | Returns the Project with name projectName. |
| setTheme | Projects.setTheme( theme ) | Changes the Theme for all the Projects in the Workspace. |
projectsinterface acts as a parent object for all projects within the workspace. Individual projects are accessed using their project name. When the name is not a valid Java identifier e.g. it begins with a numeric or contains a space, the project can only be accessed using the #getProject(String) method.All included projects can be iterated using the following code, pages are presented in the same order as they appear in the designer:
for ( var project in Iterator(projects.iterator()) ) { log(project.elementName); }Examples:var p1 = projects.myProject; var myProj = projects.getProject("myProject");