mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
comment is replaced with javadoc
This commit is contained in:
+4
-3
@@ -31,9 +31,10 @@ import java.util.function.Supplier;
|
||||
public class CreateFromTemplateAction extends CreateFromTemplateActionBase {
|
||||
private final Supplier<FileTemplate> myTemplate;
|
||||
|
||||
// Avoid calling the constructor from normal IDE actions, because:
|
||||
// - Normal actions are preloaded at startup
|
||||
// - Accessing FileTemplate out of FileTemplateManager triggers costly initialization
|
||||
/** Avoid calling the constructor from normal IDE actions, because:
|
||||
* - Normal actions are preloaded at startup
|
||||
* - Accessing FileTemplate out of FileTemplateManager triggers costly initialization
|
||||
*/
|
||||
public CreateFromTemplateAction(@NotNull FileTemplate template) {
|
||||
this(template.getName(), FileTemplateUtil.getIcon(template), () -> template);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user