@Override public IScannerInfo getScannerInformation(IResource resource) { try { IProject project = resource.getProject(); IBuildConfiguration config = project.getActiveBuildConfig(); ArduinoBuildConfiguration arduinoConfig = config.getAdapter(ArduinoBuildConfiguration.class); return arduinoConfig.getScannerInfo(resource); } catch (CoreException e) { Activator.log(e); return null; } }
public int hashCode() { final int prime = 31; int result = 1; result = prime * result + buildConfiguration.hashCode(); result = prime * result + hashCode(requestedBuilt); result = prime * result + hashCode(buildOrder); return result; }
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; BuildContext other = (BuildContext) obj; if (!buildConfiguration.equals(other.buildConfiguration)) return false; if (!Arrays.equals(requestedBuilt, other.requestedBuilt)) return false; if (!Arrays.equals(buildOrder, other.buildOrder)) return false; return true; }