polish Publish RunType UI
[teamcity/dotNetPackagesSupport.git] / nuget-server / src / jetbrains / buildServer / nuget / server / NuGetDownloadFeature.java
1 package jetbrains.buildServer.nuget.server;\r
2 \r
3 import jetbrains.buildServer.serverSide.BuildFeature;\r
4 import jetbrains.buildServer.web.openapi.PluginDescriptor;\r
5 import org.jetbrains.annotations.NotNull;\r
6 \r
7 /**\r
8  * Created Eugene Petrenko (eugene.petrenko@gmail.com)\r
9  * date: 28.04.11\r
10  */\r
11 public class NuGetDownloadFeature extends BuildFeature {\r
12   private final PluginDescriptor myDescriptor;\r
13 \r
14   public NuGetDownloadFeature(final PluginDescriptor descriptor) {\r
15     myDescriptor = descriptor;\r
16   }\r
17 \r
18   @NotNull\r
19   @Override\r
20   public String getType() {\r
21     return "NuGet.Download";\r
22   }\r
23 \r
24   @NotNull\r
25   @Override\r
26   public String getDisplayName() {\r
27     return "NuGet Dependency Download";\r
28   }\r
29 \r
30   @Override\r
31   public String getEditParametersUrl() {\r
32     return myDescriptor.getPluginResourcesPath("NuGetFetch.jsp");\r
33   }\r
34 }\r