This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
/
ProjectTemplate.xtend
50 lines (48 loc) · 2.04 KB
/
ProjectTemplate.xtend
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
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************************
* Copyright (c) 2017, 2018 itemis AG (http://www.itemis.de) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.xtext.ui.wizard.template
import com.google.common.annotations.Beta
import java.lang.annotation.Retention
import java.lang.annotation.Target
import org.eclipse.xtend.lib.macro.Active
/**
* Annotation to define a project templates that is selected by the user in the new project wizard and declared in a
* language specific ProjectTemplateProvider.
*
* @author Arne Deutsch - Initial contribution and API
* @since 2.14
*/
@Target(TYPE)
@Retention(RUNTIME)
@Active(ProjectTemplateProcessor)
@Beta
annotation ProjectTemplate {
/**
* Label of the project template presented to the user in the list of templates. The label is written to a file
* "messages.properties" and read from there at runtime. This way it is possible to internationalize using i18n.
*/
String label
/**
* Path to the icon of the project template presented to the user in the list of templates.
*/
String icon
/**
* Description of the project template presented to the user in a a text field in the new project wizard. is
* rendered inside a FormText widget and has to conform to a simplified HTML format. Example:
*
* <pre>
* <p><b>Hello World</b></p>
* <p>This is a parameterized hello world for com.daimler.pas.PAS. You can set a parameter to modify the content
* in the generated file and a parameter to set the package the file is created in.</p>
* </pre>
*
* The description is written to a file "messages.properties" and read from there at runtime. This way it is
* possible to internationalize using i18n.
*/
String description
}