-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored default ListView Columns to be isntances of ListViewColumn.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16003 71c3de6d-444a-0410-be80-ed276b4c234a
- Loading branch information
martinficker
committed
Mar 4, 2009
1 parent
ff48fbf
commit 6f5dafd
Showing
135 changed files
with
487 additions
and
856 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package hudson.views; | ||
|
||
import net.sf.json.JSONObject; | ||
|
||
import org.kohsuke.stapler.StaplerRequest; | ||
|
||
import hudson.Extension; | ||
import hudson.model.Descriptor; | ||
import hudson.model.Descriptor.FormException; | ||
import hudson.views.StatusColumn.DescriptorImpl; | ||
|
||
public class BuildButtonColumn extends ListViewColumn { | ||
|
||
public Descriptor<ListViewColumn> getDescriptor() { | ||
return DESCRIPTOR; | ||
} | ||
|
||
public static final Descriptor<ListViewColumn> DESCRIPTOR = new DescriptorImpl(); | ||
|
||
@Extension | ||
public static class DescriptorImpl extends Descriptor<ListViewColumn> { | ||
@Override | ||
public ListViewColumn newInstance(StaplerRequest req, JSONObject formData) throws FormException { | ||
// This will be called with req == null also the Descriptor's doc tells you not. so the default impl fails | ||
return new BuildButtonColumn(); | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Build Button"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package hudson.views; | ||
|
||
import hudson.Extension; | ||
import hudson.model.Descriptor; | ||
import net.sf.json.JSONObject; | ||
|
||
import org.kohsuke.stapler.StaplerRequest; | ||
|
||
public class JobColumn extends ListViewColumn { | ||
|
||
public Descriptor<ListViewColumn> getDescriptor() { | ||
return DESCRIPTOR; | ||
} | ||
|
||
public static final Descriptor<ListViewColumn> DESCRIPTOR = new DescriptorImpl(); | ||
|
||
@Extension | ||
public static class DescriptorImpl extends Descriptor<ListViewColumn> { | ||
@Override | ||
public ListViewColumn newInstance(StaplerRequest req, JSONObject formData) throws FormException { | ||
// This will be calles with req == null also the Descriptor's doc tells you not. so the default impl fails | ||
return new JobColumn(); | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Job"; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package hudson.views; | ||
|
||
import hudson.Extension; | ||
import hudson.model.Descriptor; | ||
import net.sf.json.JSONObject; | ||
|
||
import org.kohsuke.stapler.StaplerRequest; | ||
|
||
public class LastDurationColumn extends ListViewColumn { | ||
|
||
public Descriptor<ListViewColumn> getDescriptor() { | ||
return DESCRIPTOR; | ||
} | ||
|
||
public static final Descriptor<ListViewColumn> DESCRIPTOR = new DescriptorImpl(); | ||
|
||
@Extension | ||
public static class DescriptorImpl extends Descriptor<ListViewColumn> { | ||
@Override | ||
public ListViewColumn newInstance(StaplerRequest req, JSONObject formData) throws FormException { | ||
// This will be called with req == null also the Descriptor's doc tells you not. so the default impl fails | ||
return new LastDurationColumn(); | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Status"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package hudson.views; | ||
|
||
import hudson.Extension; | ||
import hudson.model.Descriptor; | ||
import net.sf.json.JSONObject; | ||
|
||
import org.kohsuke.stapler.StaplerRequest; | ||
|
||
public class LastFailureColumn extends ListViewColumn { | ||
|
||
public Descriptor<ListViewColumn> getDescriptor() { | ||
return DESCRIPTOR; | ||
} | ||
|
||
public static final Descriptor<ListViewColumn> DESCRIPTOR = new DescriptorImpl(); | ||
|
||
@Extension | ||
public static class DescriptorImpl extends Descriptor<ListViewColumn> { | ||
@Override | ||
public ListViewColumn newInstance(StaplerRequest req, JSONObject formData) throws FormException { | ||
// This will be called with req == null also the Descriptor's doc tells you not. so the default impl fails | ||
return new LastFailureColumn(); | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Status"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package hudson.views; | ||
|
||
import hudson.Extension; | ||
import hudson.model.Descriptor; | ||
import net.sf.json.JSONObject; | ||
|
||
import org.kohsuke.stapler.StaplerRequest; | ||
|
||
public class LastSuccessColumn extends ListViewColumn { | ||
|
||
public Descriptor<ListViewColumn> getDescriptor() { | ||
return DESCRIPTOR; | ||
} | ||
|
||
public static final Descriptor<ListViewColumn> DESCRIPTOR = new DescriptorImpl(); | ||
|
||
@Extension | ||
public static class DescriptorImpl extends Descriptor<ListViewColumn> { | ||
@Override | ||
public ListViewColumn newInstance(StaplerRequest req, JSONObject formData) throws FormException { | ||
// This will be called with req == null also the Descriptor's doc tells you not. so the default impl fails | ||
return new LastSuccessColumn(); | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Last Success"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package hudson.views; | ||
|
||
import net.sf.json.JSONObject; | ||
|
||
import org.kohsuke.stapler.StaplerRequest; | ||
|
||
import hudson.Extension; | ||
import hudson.model.Descriptor; | ||
|
||
public class StatusColumn extends ListViewColumn { | ||
|
||
public Descriptor<ListViewColumn> getDescriptor() { | ||
return DESCRIPTOR; | ||
} | ||
|
||
public static final Descriptor<ListViewColumn> DESCRIPTOR = new DescriptorImpl(); | ||
|
||
@Extension | ||
public static class DescriptorImpl extends Descriptor<ListViewColumn> { | ||
@Override | ||
public ListViewColumn newInstance(StaplerRequest req, JSONObject formData) throws FormException { | ||
// This will be called with req == null also the Descriptor's doc tells you not. so the default impl fails | ||
return new StatusColumn(); | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Status"; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package hudson.views; | ||
|
||
import hudson.Extension; | ||
import hudson.model.Descriptor; | ||
import net.sf.json.JSONObject; | ||
|
||
import org.kohsuke.stapler.StaplerRequest; | ||
|
||
public class WeatherColumn extends ListViewColumn { | ||
|
||
public Descriptor<ListViewColumn> getDescriptor() { | ||
return DESCRIPTOR; | ||
} | ||
|
||
public static final Descriptor<ListViewColumn> DESCRIPTOR = new DescriptorImpl(); | ||
|
||
@Extension | ||
public static class DescriptorImpl extends Descriptor<ListViewColumn> { | ||
@Override | ||
public ListViewColumn newInstance(StaplerRequest req, JSONObject formData) throws FormException { | ||
// This will be calles with req == null also the Descriptor's doc tells you not. so the default impl fails | ||
return new WeatherColumn(); | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Weather"; | ||
} | ||
} | ||
|
||
} |
25 changes: 1 addition & 24 deletions
25
core/src/main/resources/hudson/model/Cause/UpstreamCause/description_fr.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1 @@ | ||
# The MIT License | ||
# | ||
# Copyright (c) 2004-2009, Sun Microsystems, Inc., Alan Harder, Eric Lefevre-Ardant | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
started_by_project=Lancé par le projet amont <a href="{3}/{2}">{0}</a> avec le numéro de build <a href="{3}/{2}{1}/">{1}</a> | ||
|
||
started_by_project= |
25 changes: 1 addition & 24 deletions
25
core/src/main/resources/hudson/model/Cause/UserCause/description_fr.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1 @@ | ||
# The MIT License | ||
# | ||
# Copyright (c) 2004-2009, Sun Microsystems, Inc., Alan Harder, Eric Lefevre-Ardant | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
started_by_user=Lancé par l''utilisateur <a href="{1}/user/{0}">{0}</a> | ||
|
||
started_by_user= |
Oops, something went wrong.