public TextSection(Composite parent, int style, Node node) {
this(parent, findSection(parent), style, node);
}
public TextSection(Composite parent, int style, Node node) {
this(parent, findSection(parent), style, node);
}
private TextSection(Composite parent, Section parentSection, int style, Node node) {
super(parent, parentSection, style, node);
flat = SWT.FLAT == (style & SWT.FLAT);
private TextSection(Composite parent, Section parentSection, int style, Node node) {
super(parent, parentSection, style, node);
flat = SWT.FLAT == (style & SWT.FLAT);
- Integer relativeDepth = getRelativeDepth();
- return relativeDepth == 0 ? TextStyles.TEXT_TITLE : TextStyles.TEXT_H + relativeDepth;
+// Integer relativeDepth = getRelativeDepth();
+// System.out.println("Level: "+getLevel());
+ return getLevel() == 0 ? TextStyles.TEXT_TITLE : "h" + getLevel();