/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
@Override protected void onModified() throws IOException { super.onModified(); Jenkins.getInstance().trimLabels(); } }
public void remove(D descriptor) throws IOException { for (T t : data) { if(t.getDescriptor()==descriptor) { data.remove(t); onModified(); return; } } }
@Override protected void onModified() throws IOException { super.onModified(); Hudson.getInstance().trimLabels(); } }
@Override protected void onModified() throws IOException { super.onModified(); Hudson.getInstance().trimLabels(); } }
@Override protected void onModified() throws IOException { super.onModified(); Hudson.getInstance().trimLabels(); } }
@Override protected void onModified() throws IOException { super.onModified(); Hudson.getInstance().trimLabels(); } }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class) item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
public void remove(D descriptor) throws IOException { for (T t : data) { if (t.getDescriptor() == descriptor) { data.remove(t); onModified(); return; } } }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
public void remove(D descriptor) throws IOException { for (T t : data) { if(t.getDescriptor()==descriptor) { data.remove(t); onModified(); return; } } }
@Override protected void onModified() throws IOException { super.onModified(); Jenkins.getInstance().trimLabels(); } }
public void remove(D descriptor) throws IOException { for (T t : data) { if(t.getDescriptor()==descriptor) { data.remove(t); onModified(); return; } } }
public void remove(D descriptor) throws IOException { for (T t : data) { if(t.getDescriptor()==descriptor) { data.remove(t); onModified(); return; } } }
public void remove(D descriptor) throws IOException { for (T t : data) { if(t.getDescriptor()==descriptor) { data.remove(t); onModified(); return; } } }