private void showAntView(boolean treeView) {
    AntOutputView oldView = getOutputView(treeView);
    AntOutputView newView = getOutputView(!treeView);
    myCurrentView = newView;
    myMessagePanel.remove(oldView.getComponent());
    myMessagePanel.add(newView.getComponent(), BorderLayout.CENTER);
    myMessagePanel.validate();

    JComponent component = IdeFocusTraversalPolicy.getPreferredFocusedComponent(myMessagePanel);
    component.requestFocus();
    repaint();
  }
 public Object getData(String dataId) {
   Object data = myCurrentView.getData(dataId);
   if (data != null) return data;
   if (PlatformDataKeys.HELP_ID.is(dataId)) {
     return HelpID.ANT;
   } else if (PlatformDataKeys.TREE_EXPANDER.is(dataId)) {
     return myTreeExpander;
   }
   return null;
 }
 void execute(AntOutputView outputView) {
   outputView.addJavacMessage(myAntMessage, myUrl);
 }
 void execute(AntOutputView outputView) {
   outputView.addException(myAntMessage, isVerboseMode());
 }
 void execute(AntOutputView outputView) {
   outputView.addMessage(myAntMessage);
 }
 public void execute(AntOutputView outputView) {
   outputView.finishTask();
 }
 void execute(AntOutputView outputView) {
   outputView.startTask(myMessage);
 }
 void execute(AntOutputView outputView) {
   outputView.finishTarget();
 }
 void execute(AntOutputView outputView) {
   outputView.finishBuild(myFinishStatusText);
 }
 void execute(AntOutputView outputView) {
   outputView.buildFailed(myMessage);
 }
 void execute(AntOutputView outputView) {
   outputView.startBuild(myMessage);
 }