private void calculateTextState(Document doc) {
		if (doc != null && doc instanceof OutlinerDocument) {
			if (((OutlinerDocument) doc).isShowingAttributes()) {
				setText(HIDE_ATTRIBUTES);
			} else {
				setText(SHOW_ATTRIBUTES);
			}
		}
	}