Add LOC/Precision to Manufacturer list so it will appear as LOC/Precison no matter what order the parts databases are loaded.
Replace string equals with Manufacturer match method when searching for parts in the database
This commit is contained in:
parent
434a612d77
commit
013579faa9
@ -107,7 +107,7 @@ public class ComponentPresetDatabase extends Database<ComponentPreset> implement
|
||||
public List<ComponentPreset> find(String manufacturer, String partNo) {
|
||||
List<ComponentPreset> presets = new ArrayList<ComponentPreset>();
|
||||
for (ComponentPreset preset : list) {
|
||||
if (preset.getManufacturer().getSimpleName().equals(manufacturer) && preset.getPartNo().equals(partNo)) {
|
||||
if (preset.getManufacturer().matches(manufacturer) && preset.getPartNo().equals(partNo)) {
|
||||
presets.add(preset);
|
||||
}
|
||||
}
|
||||
|
@ -90,6 +90,9 @@ public class Manufacturer implements Serializable {
|
||||
manufacturers.add(new Manufacturer("Kosdon by AeroTech", "Kosdon by AeroTech", Motor.Type.RELOAD,
|
||||
"K", "KBA", "K-AT", "KOS", "KOSDON", "KOSDON/AT", "KOSDON/AEROTECH"));
|
||||
|
||||
manufacturers.add(new Manufacturer("LOC/Precision", "LOC/Precision", Motor.Type.UNKNOWN,
|
||||
"LOC"));
|
||||
|
||||
manufacturers.add(new Manufacturer("Loki Research", "Loki Research", Motor.Type.RELOAD,
|
||||
"LOKI", "LR"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user