tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/Views.java
public void clearConsole() {
        List<SWTBotView> allViews = bot.views();
        for (SWTBotView view : allViews) {
            if ("Console".equals(view.getTitle())) {
                view.show();
                if (!view.bot().styledText().getText().isEmpty()) {
                    // use the toolbar button instead of .bot().styledText().setText("")
                    // which does not seem to work synchronously
                    view.toolbarButton("Clear Console").click();
                }
                return;
            }
        }
    }
/**
     * If the Console view can be found then clear it, to make sure we don't get
     * output from previous test runs
     */
If the Console view can be found then clear it, to make sure we don't get
output from previous test runs
If the Console view can be found then clear it to make sure we don ' t get output from previous test runs
public void clearConsole() {
        List<SWTBotView> allViews = bot.views();
        for (SWTBotView view : allViews) {
            if ("Console".equals(view.getTitle())) {
                view.show();
                if (!view.bot().styledText().getText().isEmpty()) {
                    view.toolbarButton("Clear Console").click();
                }
                return;
            }
        }
    }
public void clearConsole ( ) { List < SWTBotView > allViews = bot . views ( ) ; for ( SWTBotView view : allViews ) { if ( "Console" . equals ( view . getTitle ( ) ) ) { view . show ( ) ; if ( ! view . bot ( ) . styledText ( ) . getText ( ) . isEmpty ( ) ) { view . toolbarButton ( "Clear Console" ) . click ( ) ; } return ; } } }
If the Console view can be found then clear it, to make sure we don't get
 output from previous test runs
If the Console view can be found then clear it to make sure we don ' t get output from previous test runs
// use the toolbar button instead of .bot().styledText().setText("") // which does not seem to work synchronously