Examples of showMessage()


Examples of net.sourceforge.squirrel_sql.fw.util.IMessageHandler.showMessage()

         File schemaCacheFile = getSchemaCacheFile(session.getAlias());


         String params[] = {session.getAlias().getName(),  schemaCacheFile.getPath()};
         // i18n[SchemaInfoCacheSerializer.beginStore=Starting to write schema cache for Alias {0}. file: {1}]
         msgHandler.showMessage(s_stringMgr.getString("SchemaInfoCacheSerializer.beginStore", params));


         schemaInfoCache.prepareSerialization();

         FileOutputStream fos = new FileOutputStream(schemaCacheFile);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.IMessageHandler.showMessage()

         oOut.writeObject(schemaInfoCache);
         oOut.close();
         fos.close();

         // i18n[SchemaInfoCacheSerializer.endStore=Finished writing schema cache for Alias{0}. file: {1}]
         msgHandler.showMessage(s_stringMgr.getString("SchemaInfoCacheSerializer.endStore", params));

      }
      catch (Exception e)
      {
         s_log.error("Failed to write Schema cache file ", e);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.IMessageHandler.showMessage()

   public static IMessageHandler getEasyMockMessageHandler() {
      IMessageHandler result = createMock(IMessageHandler.class);
      result.showErrorMessage(isA(Throwable.class), null);
      result.showErrorMessage(isA(String.class));
      result.showMessage(isA(String.class));
      result.showMessage(isA(Throwable.class), null);
      result.showWarningMessage(isA(String.class));
      replay(result);
      return result;
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.IMessageHandler.showMessage()

   public static IMessageHandler getEasyMockMessageHandler() {
      IMessageHandler result = createMock(IMessageHandler.class);
      result.showErrorMessage(isA(Throwable.class), null);
      result.showErrorMessage(isA(String.class));
      result.showMessage(isA(String.class));
      result.showMessage(isA(Throwable.class), null);
      result.showWarningMessage(isA(String.class));
      replay(result);
      return result;
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.IMessageHandler.showMessage()

         IMessageHandler mh = plugin.getApplication().getMessageHandler();

         ServerMain stub;
         if (cfg.isEndProcessOnDisconnect())
         {
            mh.showMessage("Launching Hibernate process ...");
            try
            {
               launchProcess(cfg);
            }
            catch (Throwable e)
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.IMessageHandler.showMessage()

         else
         {
            stub = attachToProcess(cfg, mh, false);
            if(null == stub)
            {
               mh.showMessage("Attaching to existing Hibernate process failed. Now will launch new process ...");
               launchProcess(cfg);
               stub = attachToProcess(cfg, mh, false);
            }
         }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.IMessageHandler.showMessage()

         if (null == stub)
         {
            throw new IllegalStateException("Could not attach to Hibernate process");
         }

         mh.showMessage("Successfully attached to Hibernate process. Now creating Hibernate session.");
         return stub;
      }
      catch (IOException e)
      {
         throw new RuntimeException(e);
View Full Code Here

Examples of org.araneaframework.framework.MessageContext.showMessage()

  }
 
  public static String showError(String error, Environment env) {
    MessageContext msgCtx =
      (MessageContext) env.getEntry(MessageContext.class);  
    msgCtx.showMessage(MessageContext.ERROR_TYPE, error);
   
    return error;
  }
 
  public static Collection showErrors(Collection errors, Environment env) {
View Full Code Here

Examples of org.araneaframework.framework.MessageContext.showMessage()

  public static Collection showErrors(Collection errors, Environment env) {
    MessageContext msgCtx =
      (MessageContext) env.getEntry(MessageContext.class);  
   
    for (Iterator i = errors.iterator(); i.hasNext();) {
      msgCtx.showMessage(MessageContext.ERROR_TYPE, (String) i.next());
    }
   
    return errors;
  }
}
View Full Code Here

Examples of org.eclipse.ecf.presence.ui.MessagesView.showMessage()

          IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) messageView.getSite().getAdapter(IWorkbenchSiteProgressService.class);

          if (container.getPrivateMessageSender() != null) {
            messageView.openTab(container.getPrivateMessageSender(), null, targetID, message.getFromID());

            messageView.showMessage(message);
            service.warnOfContentChange();
          }
        } catch (Exception e) {
          Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, Messages.ChatRoomManagerView_EXCEPTION_MESSAGE_VIEW_INITIALIZATION + message.getFromID(), e));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.