public void setMessage(IWizardPage page) {
   String msg = page.getErrorMessage();
   int type = IMessageProvider.ERROR;
   if (msg == null || msg.length() == 0) {
     msg = page.getMessage();
     type = IMessageProvider.NONE;
     if (msg != null && page instanceof IMessageProvider)
       type = ((IMessageProvider) page).getMessageType();
   }
   Image image = null;
   switch (type) {
     case IMessageProvider.INFORMATION:
       image = RefactoringPluginImages.get(RefactoringPluginImages.IMG_OBJS_REFACTORING_INFO);
       break;
     case IMessageProvider.WARNING:
       image = RefactoringPluginImages.get(RefactoringPluginImages.IMG_OBJS_REFACTORING_WARNING);
       break;
     case IMessageProvider.ERROR:
       image = RefactoringPluginImages.get(RefactoringPluginImages.IMG_OBJS_REFACTORING_ERROR);
       break;
   }
   if (msg == null) msg = ""; // $NON-NLS-1$
   fText.setText(escapeAmpersands(msg));
   if (image == null && msg.length() > 0)
     image = RefactoringPluginImages.get(RefactoringPluginImages.IMG_OBJS_REFACTORING_INFO);
   fImage.setImage(image);
 }