/** * Sets the text of this node to the given value. * <p> * The text element typically includes leading and trailing * whitespace that separates it from the immediately preceding * or following elements. The text element must not include * a block comment closing delimiter "*"+"/". * </p> * * @param text the text of this node * @exception IllegalArgumentException if the text is null * or contains a block comment closing delimiter */ public void setText(String text) { if (text == null) { throw new IllegalArgumentException(); } if (text.indexOf("*/") > 0) { //$NON-NLS-1$ throw new IllegalArgumentException(); } preValueChange(TEXT_PROPERTY); this.text = text; postValueChange(TEXT_PROPERTY); }
/** * Sets the text of this node to the given value. * <p> * The text element typically includes leading and trailing * whitespace that separates it from the immediately preceding * or following elements. The text element must not include * a block comment closing delimiter "*"+"/". * </p> * * @param text the text of this node * @exception IllegalArgumentException if the text is null * or contains a block comment closing delimiter */ public void setText(String text) { if (text == null) { throw new IllegalArgumentException(); } if (text.indexOf("*/") > 0) { //$NON-NLS-1$ throw new IllegalArgumentException(); } preValueChange(TEXT_PROPERTY); this.text = text; postValueChange(TEXT_PROPERTY); }
/** * Sets the text of this node to the given value. * <p> * The text element typically includes leading and trailing * whitespace that separates it from the immediately preceding * or following elements. The text element must not include * a block comment closing delimiter "*"+"/". * </p> * * @param text the text of this node * @exception IllegalArgumentException if the text is null * or contains a block comment closing delimiter */ public void setText(String text) { if (text == null) { throw new IllegalArgumentException(); } if (text.indexOf("*/") > 0) { //$NON-NLS-1$ throw new IllegalArgumentException(); } preValueChange(TEXT_PROPERTY); this.text = text; postValueChange(TEXT_PROPERTY); }
/** * Sets the text of this node to the given value. * <p> * The text element typically includes leading and trailing * whitespace that separates it from the immediately preceding * or following elements. The text element must not include * a block comment closing delimiter "*"+"/". * </p> * * @param text the text of this node * @exception IllegalArgumentException if the text is null * or contains a block comment closing delimiter */ public void setText(String text) { if (text == null) { throw new IllegalArgumentException(); } if (text.indexOf("*/") > 0) { //$NON-NLS-1$ throw new IllegalArgumentException(); } preValueChange(TEXT_PROPERTY); this.text = text; postValueChange(TEXT_PROPERTY); }
/** * Sets the text of this node to the given value. * <p> * The text element typically includes leading and trailing * whitespace that separates it from the immediately preceding * or following elements. The text element must not include * a block comment closing delimiter "*"+"/". * </p> * * @param text the text of this node * @exception IllegalArgumentException if the text is null * or contains a block comment closing delimiter */ public void setText(String text) { if (text == null) { throw new IllegalArgumentException(); } if (text.indexOf("*/") > 0) { //$NON-NLS-1$ throw new IllegalArgumentException(); } preValueChange(TEXT_PROPERTY); this.text = text; postValueChange(TEXT_PROPERTY); }
/** * Sets the text of this node to the given value. * <p> * The text element typically includes leading and trailing * whitespace that separates it from the immediately preceding * or following elements. The text element must not include * a block comment closing delimiter "*"+"/". * </p> * * @param text the text of this node * @exception IllegalArgumentException if the text is null * or contains a block comment closing delimiter */ public void setText(String text) { if (text == null) { throw new IllegalArgumentException(); } if (text.indexOf("*/") > 0) { //$NON-NLS-1$ throw new IllegalArgumentException(); } preValueChange(TEXT_PROPERTY); this.text = text; postValueChange(TEXT_PROPERTY); }