small PluginManager UI updates

- click category heading on Available tab to show/hide plugins in that category
- add initial sort for plugins on Installed tab
- no mouseover bgcolor for Advanced tab


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31819 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
mindless committed 2010-06-07 01:11:31 +00:00
1 parent a1557244f1
commit fd0e34a13f
4 files changed
+22 -6

No files matched your search

+10 -2
View File
@@ -1,7 +1,8 @@
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Yahoo! Inc., Erik Ramfelt, Tom Huybrechts
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Yahoo! Inc., Erik Ramfelt, Tom Huybrechts
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -67,7 +68,7 @@ import org.kohsuke.stapler.HttpResponses;
*
* @author Kohsuke Kawaguchi
*/
public final class PluginWrapper {
public final class PluginWrapper implements Comparable<PluginWrapper> {
/**
* {@link PluginManager} to which this belongs to.
*/
@@ -441,6 +442,13 @@ public final class PluginWrapper {
return getUpdateInfo()!=null;
}
/**
* Sort by short name.
*/
public int compareTo(PluginWrapper pw) {
return shortName.compareToIgnoreCase(pw.shortName);
}
//
//
// Action methods