@Override public void acceptTypeNameMatch(TypeNameMatch match) { result[0] = match.getType(); } };
@Override public boolean equals(Object obj) { if (obj == this) return true; // avoid unnecessary calls for identical objects if (obj instanceof TypeNameMatch) { TypeNameMatch match = (TypeNameMatch) obj; if (this.type == null) { return match.getType() == null && match.getModifiers() == this.modifiers; } return this.type.equals(match.getType()) && match.getModifiers() == this.modifiers; } return false; }
@Override public void acceptTypeNameMatch(TypeNameMatch match) { if (SelectionEngine.this.requestor instanceof SelectionRequestor) { SelectionEngine.this.noProposal = false; ((SelectionRequestor)SelectionEngine.this.requestor).acceptType(match.getType()); } } };
private boolean matchesScope(TypeNameMatch type) { if (fIsWorkspaceScope) return true; return fSearchScope.encloses(type.getType()); }
public void acceptTypeNameMatch(TypeNameMatch match) { if (SelectionEngine.this.requestor instanceof SelectionRequestor) { SelectionEngine.this.noProposal = false; ((SelectionRequestor)SelectionEngine.this.requestor).acceptType(match.getType()); } } };
/** * Returns the name of the stored type. * * @see #getType() * @see IJavaElement#getElementName() * * @throws NullPointerException if matched type is <code> null</code> * @return the type name */ public String getSimpleTypeName() { return getType().getElementName(); }
/** * Returns the name of the stored type. * * @see #getType() * @see IJavaElement#getElementName() * * @throws NullPointerException if matched type is <code> null</code> * @return the type name */ public String getSimpleTypeName() { return getType().getElementName(); }
private boolean matchesScope(TypeNameMatch type) { if (fIsWorkspaceScope) return true; return fScope.encloses(type.getType()); }
private boolean matchesScope(TypeNameMatch type) { if (fIsWorkspaceScope) return true; return fSearchScope.encloses(type.getType()); }
public boolean equals(Object obj) { if (obj == this) return true; // avoid unnecessary calls for identical objects if (obj instanceof TypeNameMatch) { TypeNameMatch match = (TypeNameMatch) obj; if (this.type == null) { return match.getType() == null && match.getModifiers() == this.modifiers; } return this.type.equals(match.getType()) && match.getModifiers() == this.modifiers; } return false; }
public void acceptTypeNameMatch(TypeNameMatch match) { if (SelectionEngine.this.requestor instanceof SelectionRequestor) { SelectionEngine.this.noProposal = false; ((SelectionRequestor)SelectionEngine.this.requestor).acceptType(match.getType()); } } };
/** * Returns the name of the stored type. * * @see #getType() * @see IJavaElement#getElementName() * * @throws NullPointerException if matched type is <code> null</code> * @return the type name */ public String getSimpleTypeName() { return getType().getElementName(); }
/** * Returns the name of the stored type. * * @see #getType() * @see IJavaElement#getElementName() * * @throws NullPointerException if matched type is <code> null</code> * @return the type name */ public String getSimpleTypeName() { return getType().getElementName(); }
protected void setAttributes(Object object, Element typeElement) { TypeNameMatch type= (TypeNameMatch) object; String handleId= type.getType().getHandleIdentifier(); typeElement.setAttribute(NODE_HANDLE, handleId); typeElement.setAttribute(NODE_MODIFIERS, Integer.toString(type.getModifiers())); Long timestamp= (Long) fTimestampMapping.get(type); if (timestamp == null) { typeElement.setAttribute(NODE_TIMESTAMP, Long.toString(IResource.NULL_STAMP)); } else { typeElement.setAttribute(NODE_TIMESTAMP, timestamp.toString()); } }
/** * Returns the package name of the stored type. * * @see #getType() * @see IType#getPackageFragment() * * @throws NullPointerException if matched type is <code> null</code> * @return the package name */ public String getPackageName() { return getType().getPackageFragment().getElementName(); }
/** * Returns the package name of the stored type. * * @see #getType() * @see IType#getPackageFragment() * * @throws NullPointerException if matched type is <code> null</code> * @return the package name */ public String getPackageName() { return getType().getPackageFragment().getElementName(); }
/** * Returns the package name of the stored type. * * @see #getType() * @see IType#getPackageFragment() * * @throws NullPointerException if matched type is <code> null</code> * @return the package name */ public String getPackageName() { return getType().getPackageFragment().getElementName(); }
/** * Returns the package name of the stored type. * * @see #getType() * @see IType#getPackageFragment() * * @throws NullPointerException if matched type is <code> null</code> * @return the package name */ public String getPackageName() { return getType().getPackageFragment().getElementName(); }
/** * Returns the package name of the stored type. * * @see #getType() * @see IType#getPackageFragment() * * @throws NullPointerException if matched type is <code> null</code> * @return the package name */ public String getPackageName() { return getType().getPackageFragment().getElementName(); }
/** * @see org.eclipse.jdt.internal.debug.ui.breakpoints.AddExceptionDialog.ExceptionLabelProvider#getImage(java.lang.Object) */ public Image getImage(Object element) { if(element instanceof TypeNameMatch) { return super.getImage(getDeclaringContainer(((TypeNameMatch)element).getType())); } return super.getImage(element); } }