Mercurial > projects > dwt-addons
comparison dwtx/jface/text/templates/persistence/TemplatePersistenceData.d @ 145:02cd5f1224d3
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 22:31:00 +0200 |
parents | 7d818bd32d63 |
children | 75302ef3f92f |
comparison
equal
deleted
inserted
replaced
144:16a71f577815 | 145:02cd5f1224d3 |
---|---|
51 * template. | 51 * template. |
52 * | 52 * |
53 * @param template the template which is stored by the new instance | 53 * @param template the template which is stored by the new instance |
54 * @param enabled whether the template is enabled | 54 * @param enabled whether the template is enabled |
55 */ | 55 */ |
56 public this(Template template, bool enabled) { | 56 public this(Template template_, bool enabled) { |
57 this(template, enabled, null); | 57 this(template_, enabled, null); |
58 } | 58 } |
59 | 59 |
60 /** | 60 /** |
61 * Creates a new instance. If <code>id</code> is not <code>null</code>, | 61 * Creates a new instance. If <code>id</code> is not <code>null</code>, |
62 * the instance is represents a template that is contributed and can be | 62 * the instance is represents a template that is contributed and can be |
65 * @param template the template which is stored by the new instance | 65 * @param template the template which is stored by the new instance |
66 * @param enabled whether the template is enabled | 66 * @param enabled whether the template is enabled |
67 * @param id the id of the template, or <code>null</code> if a user-added | 67 * @param id the id of the template, or <code>null</code> if a user-added |
68 * instance should be created | 68 * instance should be created |
69 */ | 69 */ |
70 public this(Template template, bool enabled, String id) { | 70 public this(Template template_, bool enabled, String id) { |
71 Assert.isNotNull(template); | 71 Assert.isNotNull(template_); |
72 fOriginalTemplate= template; | 72 fOriginalTemplate= template_; |
73 fCustomTemplate= template; | 73 fCustomTemplate= template_; |
74 fOriginalIsEnabled= enabled; | 74 fOriginalIsEnabled= enabled; |
75 fCustomIsEnabled= enabled; | 75 fCustomIsEnabled= enabled; |
76 fId= id; | 76 fId= id; |
77 } | 77 } |
78 | 78 |
117 /** | 117 /** |
118 * Sets the template encapsulated by the receiver. | 118 * Sets the template encapsulated by the receiver. |
119 * | 119 * |
120 * @param template the new template | 120 * @param template the new template |
121 */ | 121 */ |
122 public void setTemplate(Template template) { | 122 public void setTemplate(Template template_) { |
123 fCustomTemplate= template; | 123 fCustomTemplate= template_; |
124 } | 124 } |
125 | 125 |
126 /** | 126 /** |
127 * Returns whether the receiver represents a custom template, i.e. is either | 127 * Returns whether the receiver represents a custom template, i.e. is either |
128 * a user-added template or a contributed template that has been modified. | 128 * a user-added template or a contributed template that has been modified. |