Skip to content
Permalink
Browse files

[FIXED JENKINS-20523] Provide views list in breadcrumb bar

Conflicts:
	src/main/java/com/cloudbees/hudson/plugins/folder/Folder.java
  • Loading branch information...
daniel-beck committed Feb 16, 2014
1 parent a24eb62 commit 4398ffb28dd8ed3954a4bb4884cdbfcb948f3f62
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/main/java/com/cloudbees/hudson/plugins/folder/Folder.java
@@ -114,13 +114,14 @@
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import jenkins.model.Jenkins;
import jenkins.model.ModelObjectWithChildren;
import org.kohsuke.stapler.interceptor.RequirePOST;

/**
* {@link Item} that contains other {@link Item}s, without modeling dependency.
*/
public class Folder extends AbstractItem
implements ModifiableTopLevelItemGroup, ViewGroup, TopLevelItem, StaplerOverridable, StaplerFallback {
implements ModifiableTopLevelItemGroup, ViewGroup, TopLevelItem, StaplerOverridable, StaplerFallback, ModelObjectWithChildren {

/**
* @see #getNewPronoun
@@ -653,6 +654,14 @@ public FormValidation doCheckJobName(@QueryParameter String value) {
}
}

public ContextMenu doChildrenContextMenu(StaplerRequest request, StaplerResponse response) {
ContextMenu menu = new ContextMenu();
for (View view : getViews()) {
menu.add(view.getAbsoluteUrl(),view.getDisplayName());
}
return menu;
}

/**
* Copies an existing {@link TopLevelItem} to into this folder with a new name.
*/

0 comments on commit 4398ffb

Please sign in to comment.
You can’t perform that action at this time.