-
Notifications
You must be signed in to change notification settings - Fork 3
/
requests.mtl
39 lines (33 loc) · 1.19 KB
/
requests.mtl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[comment encoding = UTF-8 /]
[**
* Requests module.
* @author <a href="mailto:yvan.lussaud@obeo.fr">Yvan Lussaud</a>
* @version 1.0.0
* @since 1.0.0
*/]
[module requests('http://www.eclipse.org/acceleo/4.0')/]
[**
* Gets the standalone generator class name.
* @param module the module
*/]
[query public getClassName(module : acceleo::Module) : String = module.name.toUpperFirst() + 'Generator'/]
[**
* Gets the base project name.
* @param projectUIName the Eclipse UI project name
*/]
[query public baseProjectName(projectUIName : String) : String = projectUIName.substring(1, projectUIName.size() - '.ide.ui'.size())/]
[**
* Gets the Eclipse command handler class name.
* @param module the module
*/]
[query public getEclipseHandlerClassName(module : acceleo::Module) : String = module.name.toUpperFirst() + 'GeneratorHandler'/]
[**
* Gets the Eclipse command ID name.
* @param module the module
*/]
[query public getCommandID(module : acceleo::Module) : String = module.name + 'GeneratorCommand'/]
[**
* Gets the Eclipse generator class name.
* @param module the module
*/]
[query public getEclipseClassName(module : acceleo::Module) : String = module.name.toUpperFirst() + 'GeneratorEclipse'/]