blob: 9a1abc96c8bef603f68090d1613bb1e71b773356 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.cdt.arduino.core.internal.board;
import java.util.List;
public class PackageIndex {
private List<ArduinoPackage> packages;
public List<ArduinoPackage> getPackages() {
return packages;
}
public ArduinoPackage getPackage(String packageName) {
for (ArduinoPackage pkg : packages) {
if (pkg.getName().equals(packageName)) {
return pkg;
}
}
return null;
}
void setOwners(ArduinoManager manager) {
for (ArduinoPackage pkg : packages) {
pkg.setOwner(manager);
}
}
}