/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hudson.plugins.disk_usage;

import hudson.Extension;
import hudson.model.ManagementLink;
import hudson.model.RootAction;

/**
 *
 * @author Lucie Votypkova
 */
@Extension
public class DiskUsageManagement extends ManagementLink implements RootAction{

   public final String[] COLUMNS = new String[]{"Project name", "Builds", "Workspace", "JobDirectory (without builds)"};

        public String getIconFileName() {
            return "/plugin/disk-usage/icons/diskusage48.png";
        }

        public String getDisplayName() {
            return Messages.DisplayName();
        }

        public String getUrlName() {
            return "plugin/disk-usage/";
        }

        @Override public String getDescription() {
            return Messages.Description();
        }     
    
}

@@ -221,16 +221,200 @@
 tAction;
+%0Aimport java.io.IOException;%0Aimport javax.servlet.ServletException;%0Aimport jenkins.model.Jenkins;%0Aimport org.kohsuke.stapler.StaplerRequest;%0Aimport org.kohsuke.stapler.StaplerResponse;
 %0A%0A/**%0A *
@@ -926,23 +926,16 @@
 return %22
-plugin/
 disk-usa
@@ -936,17 +936,16 @@
 sk-usage
-/
 %22;%0A     
@@ -1055,19 +1055,323 @@
      %7D  
-   
+%0A        %0A        public void doIndex(StaplerRequest req, StaplerResponse res) throws ServletException, IOException%7B%0A            DiskUsagePlugin plugin = Jenkins.getInstance().getPlugin(DiskUsagePlugin.class);%0A            res.sendRedirect(Jenkins.getInstance().getRootUrl() + %22plugin/disk-usage%22);%0A        %7D
 %0A    %0A%7D%0A

Fix link in menu on main page.