PageRenderTime 10ms CodeModel.GetById 6ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/plugin-module-codegen-maven-client/src/main/java/com/atlassian/maven/plugins/amps/codegen/prompter/common/web/WebPanelRendererPrompter.java

https://bitbucket.org/mmeinhold/amps
Java | 42 lines | 29 code | 10 blank | 3 comment | 0 complexity | 2f126700c10d3ba20c4ce2b379566e54 MD5 | raw file
 1package com.atlassian.maven.plugins.amps.codegen.prompter.common.web;
 2
 3import com.atlassian.maven.plugins.amps.codegen.annotations.ModuleCreatorClass;
 4import com.atlassian.maven.plugins.amps.codegen.prompter.AbstractModulePrompter;
 5import com.atlassian.plugins.codegen.modules.PluginModuleLocation;
 6import com.atlassian.plugins.codegen.modules.common.web.WebPanelRendererModuleCreator;
 7import com.atlassian.plugins.codegen.modules.common.web.WebPanelRendererProperties;
 8import com.atlassian.plugins.codegen.util.ClassnameUtil;
 9
10import org.codehaus.plexus.components.interactivity.Prompter;
11import org.codehaus.plexus.components.interactivity.PrompterException;
12
13/**
14 * @since 3.6
15 */
16@ModuleCreatorClass(WebPanelRendererModuleCreator.class)
17public class WebPanelRendererPrompter extends AbstractModulePrompter<WebPanelRendererProperties>
18{
19
20    public WebPanelRendererPrompter(Prompter prompter)
21    {
22        super(prompter);
23
24    }
25
26    @Override
27    public WebPanelRendererProperties promptForBasicProperties(PluginModuleLocation moduleLocation) throws PrompterException
28    {
29        String className = promptJavaClassname("Enter New Classname", "MyWebPanelRenderer");
30        String packageName = promptJavaPackagename("Enter Package Name", getDefaultBasePackage() + ".web");
31
32        String fqClass = ClassnameUtil.fullyQualifiedName(packageName, className);
33
34        return new WebPanelRendererProperties(fqClass);
35    }
36
37    @Override
38    public void promptForAdvancedProperties(WebPanelRendererProperties props, PluginModuleLocation moduleLocation) throws PrompterException
39    {
40
41    }
42}