This commit is contained in:
Alexey Kudravtsev
2011-12-29 17:26:44 +04:00
parent 86ecba318e
commit a7a81d1a4b
4 changed files with 6 additions and 6 deletions
@@ -61,7 +61,7 @@ public abstract class AbstractLightClass extends LightElement implements PsiClas
}
@Override
public boolean hasModifierProperty(@Modifier @NonNls @NotNull String name) {
public boolean hasModifierProperty(@NonNls @NotNull String name) {
return getDelegate().hasModifierProperty(name);
}
@@ -86,7 +86,7 @@ public class TextPainter implements Printable {
myPlainFont = new Font(fontName, Font.PLAIN, fontSize);
myBoldFont = new Font(fontName, Font.BOLD, fontSize);
myItalicFont = new Font(fontName, Font.ITALIC, fontSize);
myBoldItalicFont = new Font(fontName, Font.BOLD + Font.ITALIC, fontSize);
myBoldItalicFont = new Font(fontName, Font.BOLD | Font.ITALIC, fontSize);
myHighlighter = highlighter;
myHeaderFont = new Font(myPrintSettings.FOOTER_HEADER_FONT_NAME, Font.PLAIN,
myPrintSettings.FOOTER_HEADER_FONT_SIZE);
@@ -212,7 +212,7 @@ public abstract class AbstractColorsScheme implements EditorColorsScheme {
Font boldFont = new Font(editorFontName, Font.BOLD, editorFontSize);
Font italicFont = new Font(editorFontName, Font.ITALIC, editorFontSize);
Font boldItalicFont = new Font(editorFontName, Font.BOLD + Font.ITALIC, editorFontSize);
Font boldItalicFont = new Font(editorFontName, Font.BOLD | Font.ITALIC, editorFontSize);
myFonts.put(EditorFontType.PLAIN, plainFont);
myFonts.put(EditorFontType.BOLD, boldFont);
@@ -225,7 +225,7 @@ public abstract class AbstractColorsScheme implements EditorColorsScheme {
Font consolePlainFont = new Font(consoleFontName, Font.PLAIN, consoleFontSize);
Font consoleBoldFont = new Font(consoleFontName, Font.BOLD, consoleFontSize);
Font consoleItalicFont = new Font(consoleFontName, Font.ITALIC, consoleFontSize);
Font consoleBoldItalicFont = new Font(consoleFontName, Font.BOLD + Font.ITALIC, consoleFontSize);
Font consoleBoldItalicFont = new Font(consoleFontName, Font.BOLD | Font.ITALIC, consoleFontSize);
myFonts.put(EditorFontType.CONSOLE_PLAIN, consolePlainFont);
myFonts.put(EditorFontType.CONSOLE_BOLD, consoleBoldFont);
@@ -260,7 +260,7 @@ public abstract class TestColumnInfo extends ColumnInfo implements Comparator {
}
if (passed > 0) {
final Color color = suiteState.isPassed() ? TestsUIUtil.PASSED_COLOR : Color.BLACK;
myCounters.append(separator + ExecutionBundle.message("junit.runing.info.passed.count.message", passed), new SimpleTextAttributes(Font.BOLD, color));
myCounters.append(separator + ExecutionBundle.message("junit.runing.info.passed.count.message", passed), new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, color));
}
}
@@ -271,7 +271,7 @@ public abstract class TestColumnInfo extends ColumnInfo implements Comparator {
}
else if (state.isPassed()) {
myCounters
.append(ExecutionBundle.message("junit.runing.info.passed.label"), new SimpleTextAttributes(Font.BOLD, TestsUIUtil.PASSED_COLOR));
.append(ExecutionBundle.message("junit.runing.info.passed.label"), new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, TestsUIUtil.PASSED_COLOR));
}
else if (state.getMagnitude() == PoolOfTestStates.ERROR_INDEX) {
myCounters.append(ExecutionBundle.message("junit.runing.info.error.tree.node"), DEFECT_ATTRIBUTE);