PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/plugin-module-codegen-engine/src/main/resources/templates/jira/tabpanel/component/ComponentTabPanel.java.vtl

https://bitbucket.org/mmeinhold/amps
Unknown | 32 lines | 26 code | 6 blank | 0 comment | 0 complexity | 8e4edcfb5edee935fa9a994aa4d3636a MD5 | raw file
 1package ${PACKAGE};
 2
 3import org.slf4j.Logger;
 4import org.slf4j.LoggerFactory;
 5import com.atlassian.jira.plugin.componentpanel.ComponentTabPanel;
 6import com.atlassian.jira.plugin.componentpanel.ComponentTabPanelModuleDescriptor;
 7import com.atlassian.jira.plugin.componentpanel.BrowseComponentContext;
 8import java.util.HashMap;
 9import java.util.Map;
10
11public class ${CLASSNAME} implements ComponentTabPanel
12{
13    private static final Logger log = LoggerFactory.getLogger(${CLASSNAME}.class);
14    protected ComponentTabPanelModuleDescriptor descriptor;
15
16    public void init(ComponentTabPanelModuleDescriptor descriptor)
17    {
18        this.descriptor = descriptor;
19    }
20
21    public String getHtml(BrowseComponentContext context)
22    {
23        final Map<String, Object> velocityParams = new HashMap<String,Object>();
24
25        return descriptor.getHtml("view", velocityParams);
26    }
27
28    public boolean showPanel(BrowseComponentContext context)
29    {
30        return true;
31    }
32}