/** * Returns whether the receiver represents a custom template, i.e. is either * a user-added template or a contributed template that has been modified. * * @return <code>true</code> if the contained template is a custom * template and cannot be reconstructed from the contributed * templates */ public boolean isCustom() { return fId == null || fIsDeleted || fOriginalIsEnabled != fCustomIsEnabled || !fOriginalTemplate.equals(fCustomTemplate); }
/** * Returns whether the receiver represents a custom template, i.e. is either * a user-added template or a contributed template that has been modified. * * @return <code>true</code> if the contained template is a custom * template and cannot be reconstructed from the contributed * templates */ public boolean isCustom() { return fId == null || fIsDeleted || fOriginalIsEnabled != fCustomIsEnabled || !fOriginalTemplate.equals(fCustomTemplate); }
private boolean exists(Template template) { for (Iterator<Template> iterator = fTemplates.iterator(); iterator.hasNext();) { Template anotherTemplate = iterator.next(); if (template.equals(anotherTemplate)) return true; } return false; }
private boolean exists(Template template) { for (Iterator iterator = fTemplates.iterator(); iterator.hasNext();) { Template anotherTemplate = (Template) iterator.next(); if (template.equals(anotherTemplate)) return true; } return false; }
private boolean exists(Template template) { for (Iterator<Template> iterator = fTemplates.iterator(); iterator.hasNext();) { Template anotherTemplate = iterator.next(); if (template.equals(anotherTemplate)) return true; } return false; }
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj == null || !(obj instanceof XtextTemplateProposal)) return false; XtextTemplateProposal other = (XtextTemplateProposal) obj; return getTemplate().equals(other.getTemplate()); }