public String toString() { StringBuffer buf= new StringBuffer(); buf.append(this.parent).append(" - "); //$NON-NLS-1$ buf.append(this.childProperty.getId()).append(": "); //$NON-NLS-1$ buf.append(this.event).append('\n'); return buf.toString(); } }
@Override public String toString() { StringBuffer buf= new StringBuffer(); buf.append(this.parent).append(" - "); //$NON-NLS-1$ buf.append(this.childProperty.getId()).append(": "); //$NON-NLS-1$ buf.append(this.event).append('\n'); return buf.toString(); } }
public String toString() { StringBuffer buf= new StringBuffer(); buf.append(this.parent).append(" - "); //$NON-NLS-1$ buf.append(this.childProperty.getId()).append(": "); //$NON-NLS-1$ buf.append(this.event).append('\n'); return buf.toString(); } }
private void validateIsListProperty(StructuralPropertyDescriptor property) { if (!property.isChildListProperty()) { String message= property.getId() + " is not a list property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
public String toString() { StringBuffer buf= new StringBuffer(); buf.append(this.parent).append(" - "); //$NON-NLS-1$ buf.append(this.childProperty.getId()).append(": "); //$NON-NLS-1$ buf.append(this.event).append('\n'); return buf.toString(); } }
private void validateIsListProperty(StructuralPropertyDescriptor property) { if (!property.isChildListProperty()) { String message= property.getId() + " is not a list property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateIsListProperty(StructuralPropertyDescriptor property) { if (!property.isChildListProperty()) { String message= property.getId() + " is not a list property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateIsListProperty(StructuralPropertyDescriptor property) { if (!property.isChildListProperty()) { String message= property.getId() + " is not a list property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateIsNodeProperty(StructuralPropertyDescriptor property) { if (property.isChildListProperty()) { String message= property.getId() + " is not a node property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateIsListProperty(StructuralPropertyDescriptor property) { if (!property.isChildListProperty()) { String message= property.getId() + " is not a list property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateIsPropertyOfNode(StructuralPropertyDescriptor property, ASTNode node) { if (!property.getNodeClass().isInstance(node)) { String message= property.getId() + " is not a property of type " + node.getClass().getName(); //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateIsNodeProperty(StructuralPropertyDescriptor property) { if (property.isChildListProperty()) { String message= property.getId() + " is not a node property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateIsListProperty(StructuralPropertyDescriptor property) { if (!property.isChildListProperty()) { String message= property.getId() + " is not a list property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateIsNodeProperty(StructuralPropertyDescriptor property) { if (property.isChildListProperty()) { String message= property.getId() + " is not a node property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateIsListProperty(StructuralPropertyDescriptor property) { if (!property.isChildListProperty()) { String message= property.getId() + " is not a list property"; //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private void validateHasChildProperty(ASTNode parent, StructuralPropertyDescriptor property) { if (!parent.structuralPropertiesForType().contains(property)) { String message= Signature.getSimpleName(parent.getClass().getName()) + " has no property " + property.getId(); //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private ChildListPropertyDescriptor getProperty() { List<StructuralPropertyDescriptor> list= fCallerNode.structuralPropertiesForType(); for (int i= 0; i < list.size(); i++) { StructuralPropertyDescriptor curr= list.get(i); if (curr.isChildListProperty() && "arguments".equals(curr.getId())) { //$NON-NLS-1$ return (ChildListPropertyDescriptor) curr; } } return null; }
private ChildListPropertyDescriptor getProperty() { List<StructuralPropertyDescriptor> list= fCallerNode.structuralPropertiesForType(); for (int i= 0; i < list.size(); i++) { StructuralPropertyDescriptor curr= list.get(i); if (curr.isChildListProperty() && "arguments".equals(curr.getId())) { //$NON-NLS-1$ return (ChildListPropertyDescriptor) curr; } } return null; }
private void validateHasChildProperty(ASTNode parent, StructuralPropertyDescriptor property) { if (!parent.structuralPropertiesForType().contains(property)) { String message= Signature.getSimpleName(parent.getClass().getName()) + " has no property " + property.getId(); //$NON-NLS-1$ throw new IllegalArgumentException(message); } }
private ChildListPropertyDescriptor getProperty() { List<StructuralPropertyDescriptor> list= fCallerNode.structuralPropertiesForType(); for (int i= 0; i < list.size(); i++) { StructuralPropertyDescriptor curr= list.get(i); if (curr.isChildListProperty() && "arguments".equals(curr.getId())) { //$NON-NLS-1$ return (ChildListPropertyDescriptor) curr; } } return null; }