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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.