Package net.sourceforge.squirrel_sql.fw.util

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


         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

   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

   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

         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

         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

         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

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.