@Override public boolean equals(Object obj) { if (obj instanceof WorkspaceFileTargetHandle) { WorkspaceFileTargetHandle handle = (WorkspaceFileTargetHandle) obj; return fFile.equals(handle.fFile); } return false; }
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj instanceof LocalFileRevision) { LocalFileRevision other = (LocalFileRevision) obj; return other.file.equals(this.file); } return false; } }
public boolean equals(Object otherObject) { boolean equals = false; if (otherObject != null && otherObject instanceof ArtifactEditJSFAppConfigProvider) { IFile otherAppConfigFile = ((ArtifactEditJSFAppConfigProvider)otherObject).appConfigFile; if (appConfigFile != null) { equals = appConfigFile.equals(otherAppConfigFile); } else { equals = otherAppConfigFile == null; } } return equals; }
@Override public boolean equals(Object o) { if (o instanceof AddJrtToIndex) { if (this.resource != null) return this.resource.equals(((AddJrtToIndex) o).resource); if (this.containerPath != null) return this.containerPath.equals(((AddJrtToIndex) o).containerPath); } return false; } @Override
public boolean equals(Object o) { if (o instanceof AddJarFileToIndex) { if (this.resource != null) return this.resource.equals(((AddJarFileToIndex) o).resource); if (this.containerPath != null) return this.containerPath.equals(((AddJarFileToIndex) o).containerPath); } return false; } public int hashCode() {
private boolean evaluateCU(ICompilationUnit compilationUnit, IFile file) throws JavaModelException { IStorage bundle= FindBrokenNLSKeysAction.getResourceBundle(compilationUnit); if (!(bundle instanceof IFile)) return false; return file.equals(bundle); } }
@Override public boolean equals(Object o) { if (o instanceof AddJarFileToIndex) { if (this.resource != null) return this.resource.equals(((AddJarFileToIndex) o).resource); if (this.containerPath != null) return this.containerPath.equals(((AddJarFileToIndex) o).containerPath); } return false; } @Override
public boolean equals(Object obj) { if (obj == this) return true; if (obj instanceof LocalFileRevision) { LocalFileRevision other = (LocalFileRevision) obj; if (file != null && other.file != null) return file.equals(other.file); if (state != null && other.state != null) return statesEqual(state, other.state); } return false; }
@Override public boolean visit(IResourceDelta d) throws CoreException { if (myFileFound[0]) { return false; } myFileFound[0] = m_file.equals(d.getResource()); return !myFileFound[0]; } });
public boolean equals(Object o) { if (o instanceof AddJarFileToIndex) { if (this.resource != null) return this.resource.equals(((AddJarFileToIndex) o).resource); if (this.containerPath != null) return this.containerPath.equals(((AddJarFileToIndex) o).containerPath); } return false; } public int hashCode() {
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof IFileEditorInput)) { return false; } IFileEditorInput other = (IFileEditorInput) obj; return file.equals(other.getFile()); }
private Match[] collectMarkers(IFile resource) { List matching= new ArrayList(); for (int i= 0; i < fMarkers.size(); i++) { Match marker= (Match)fMarkers.get(i); if (!resource.equals(marker.getElement())) break; matching.add(marker); } Match[] markers= new Match[matching.size()]; return (Match[])matching.toArray(markers); }
public boolean equals(Object o) { if (o instanceof AddJarFileToIndex) { if (this.resource != null) return this.resource.equals(((AddJarFileToIndex) o).resource); if (this.containerPath != null) return this.containerPath.equals(((AddJarFileToIndex) o).containerPath); } return false; } public int hashCode() {
public boolean equals(Object o) { if (o instanceof AddJrtToIndex) { if (this.resource != null) return this.resource.equals(((AddJrtToIndex) o).resource); if (this.containerPath != null) return this.containerPath.equals(((AddJrtToIndex) o).containerPath); } return false; } public int hashCode() {
public boolean matches(IResource resource) { if (fEditorInput instanceof IFileEditorInput) { IFileEditorInput finput = (IFileEditorInput) fEditorInput; IFile file = finput.getFile(); if (file.equals(resource)) return true; } return false; }
synchronized IJpaFile getJpaFileInternal(IFile file) { for (IJpaFile next : this.getFiles()) { if (next.getFile().equals(file)) { return next; } } return null; }
private void addXMLChange(IFile file, ModelChangeElement change) { if (fXMLCoupling == null) { fXMLCoupling = new ModelChangeFile(file, this); } if (!fXMLCoupling.getFile().equals(file)) { return; } fXMLCoupling.add(change); }
@Override public Match[] computeContainedMatches(AbstractTextSearchResult result, IFile file) { Object[] elements= getElements(); if (elements.length == 0) return NO_MATCHES; //all matches from same file: JavaElementLine jel= (JavaElementLine) elements[0]; if (file.equals(jel.getJavaElement().getResource())) return collectMatches(elements); return NO_MATCHES; }
@Override public Match[] computeContainedMatches(AbstractTextSearchResult result, IFile file) { Object[] elements= getElements(); if (elements.length == 0) return NO_MATCHES; //all matches from same file: JavaElementLine jel= (JavaElementLine) elements[0]; if (file.equals(jel.getJavaElement().getResource())) return collectMatches(elements); return NO_MATCHES; }
private void selectEntry(Match marker) { ISelection sel= fPage.getViewer().getSelection(); if (!(sel instanceof IStructuredSelection)) return; IStructuredSelection ss= (IStructuredSelection) sel; IFile file= (IFile) marker.getElement(); if (ss.size() == 1 && file.equals(ss.getFirstElement())) return; fPage.getViewer().setSelection(new StructuredSelection(marker.getElement())); }