protected void updateTransientActions() { Vector<Action> ta = new Vector<Action>(); for (LabelAtomProperty p : properties) ta.addAll(p.getActions(this)); transientActions = ta; }
/** * Returns all the {@link LabelAtomPropertyDescriptor}s that can be potentially configured * on this label. */ public List<LabelAtomPropertyDescriptor> getApplicablePropertyDescriptors() { return LabelAtomProperty.all(); }
public Descriptor<LabelAtomProperty> superGetDescriptor() { return super.getDescriptor(); }
@Override public Descriptor<LabelAtomProperty> getDescriptor() { initPython(); if (pexec.isImplemented(1)) { return (Descriptor) pexec.execPython("get_descriptor"); } else { return super.getDescriptor(); } }
public Collection<? extends Action> superGetActions(LabelAtom atom) { return super.getActions(atom); }
/** * Returns all the {@link LabelAtomPropertyDescriptor}s that can be potentially configured * on this label. */ public List<LabelAtomPropertyDescriptor> getApplicablePropertyDescriptors() { return LabelAtomProperty.all(); }
protected void updateTransientActions() { Vector<Action> ta = new Vector<Action>(); for (LabelAtomProperty p : properties) ta.addAll(p.getActions(this)); transientActions = ta; }
/** * Returns all the {@link LabelAtomPropertyDescriptor}s that can be potentially configured * on this label. */ public List<LabelAtomPropertyDescriptor> getApplicablePropertyDescriptors() { return LabelAtomProperty.all(); }
protected void updateTransientActions() { Vector<Action> ta = new Vector<Action>(); // add the config link if (!getApplicablePropertyDescriptors().isEmpty()) { // if there's no property descriptor, there's nothing interesting to configure. ta.add(new Action() { public String getIconFileName() { if (Hudson.getInstance().hasPermission(Hudson.ADMINISTER)) return "setting.png"; else return null; } public String getDisplayName() { return "Configure"; } public String getUrlName() { return "configure"; } }); } for (LabelAtomProperty p : properties) ta.addAll(p.getActions(this)); transientActions = ta; }
/** * Returns all the {@link LabelAtomPropertyDescriptor}s that can be potentially configured * on this label. */ public List<LabelAtomPropertyDescriptor> getApplicablePropertyDescriptors() { return LabelAtomProperty.all(); }
protected void updateTransientActions() { Vector<Action> ta = new Vector<Action>(); // add the config link if (!getApplicablePropertyDescriptors().isEmpty()) { // if there's no property descriptor, there's nothing interesting to configure. ta.add(new Action() { public String getIconFileName() { if (Hudson.getInstance().hasPermission(Hudson.ADMINISTER)) return "setting.gif"; else return null; } public String getDisplayName() { return "Configure"; } public String getUrlName() { return "configure"; } }); } for (LabelAtomProperty p : properties) ta.addAll(p.getActions(this)); transientActions = ta; }
/** * Returns all the {@link LabelAtomPropertyDescriptor}s that can be * potentially configured on this label. */ public List<LabelAtomPropertyDescriptor> getApplicablePropertyDescriptors() { return LabelAtomProperty.all(); }
protected void updateTransientActions() { Vector<Action> ta = new Vector<Action>(); // add the config link if (!getApplicablePropertyDescriptors().isEmpty()) { // if there's no property descriptor, there's nothing interesting to configure. ta.add(new Action() { public String getIconFileName() { if (Hudson.getInstance().hasPermission(Hudson.ADMINISTER)) return "setting.gif"; else return null; } public String getDisplayName() { return "Configure"; } public String getUrlName() { return "configure"; } }); } for (LabelAtomProperty p : properties) ta.addAll(p.getActions(this)); transientActions = ta; }
/** * Returns all the {@link LabelAtomPropertyDescriptor}s that can be potentially configured * on this label. */ public List<LabelAtomPropertyDescriptor> getApplicablePropertyDescriptors() { return LabelAtomProperty.all(); }
protected void updateTransientActions() { Vector<Action> ta = new Vector<Action>(); // add the config link if (!getApplicablePropertyDescriptors().isEmpty()) { // if there's no property descriptor, there's nothing interesting to configure. ta.add(new Action() { public String getIconFileName() { if (Hudson.getInstance().hasPermission(Hudson.ADMINISTER)) { return "setting.png"; } else { return null; } } public String getDisplayName() { return "Configure"; } public String getUrlName() { return "configure"; } }); } for (LabelAtomProperty p : properties) { ta.addAll(p.getActions(this)); } transientActions = ta; }
@Override public Collection<? extends Action> getActions(LabelAtom atom) { initPython(); if (pexec.isImplemented(0)) { return (Collection) pexec.execPython("get_actions", atom); } else { return super.getActions(atom); } }