I mean, how can i put context to Miscelaneous Configuration Tab to use it with freemarker template. For example in the AbstractTaskConfigurator class we can do this:
public void populateContextForCreate(@NotNull final Map<String, Object> context) {
Map<String, String> repositoryMap = Maps.newLinkedHashMap();
repositoryMap.put("new", "new");
repositoryMap.put("new2", "new2");
context.put("repositories", repositoryMap);
}
and then in the freemarker template:
@ww.select">[@ww.select name="be.sofico.bamboo.plugins.svndiff.repo" labelKey="be.sofico.bamboo.plugins.svndiff.repo" list='repositories' emptyOption="false" /]
but in the BaseBuildConfigurationAwarePlugin we only have the methods populateContextForEdit() and populateContextForView() we dont have the method public void populateContextForCreate(), so HOW CAN I DO THIS!!! THANKS A LOT
You only need to use the populateContextForEdit, it's used for everything.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.