// }
// if a full Text node is selected,and the Text node is the only child
// of its parent
if ((startNode == endNode) && (startNode instanceof Text)) {
TextEditPart part = (TextEditPart) ((INodeNotifier) startNode)
.getAdapterFor(EditPart.class);
boolean condition = false;
if (start instanceof IDOMRefPosition
|| (start instanceof DOMPosition && !start.isText())) {
condition = parentNode.getNodeName().equalsIgnoreCase(
IHTMLConstants.TAG_P)
&& parentNode.getChildNodes().getLength() == 1;
} else {
condition = parentNode.getNodeName().equalsIgnoreCase(
IHTMLConstants.TAG_P)
&& parentNode.getChildNodes().getLength() == 1
&& part.getTextData().length() == len;
}
if (condition) {
// if uncheck the align action
if (this.getApplyingNode()
.getAttribute(IHTMLConstants.ATTR_ALIGN)