Examples of CursorChanger


Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

      if ((objectTotal == 1)
        && (selectedObjects[0].getDatabaseObjectType()
          == DatabaseObjectType.TABLE))
      {
        CursorChanger cursorChg = new CursorChanger(getApplication().getMainFrame());
        cursorChg.show();
        try
        {
          new EditWhereColsCommand(app, _tree, selectedObjects[0]).execute();
        }
        finally
        {
          cursorChg.restore();
        }
      }
      else
      {
                //i18n[EditWhereColsAction.singleObjectMessage=You must have a
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

      }
   }

   public void actionPerformed(ActionEvent evt)
   {
      CursorChanger cursorChg = new CursorChanger(getApplication().getMainFrame());
      cursorChg.show();
      try
      {
         IPlugin plugin = _session.getApplication().getDummyAppPlugin();
         _session.rollback();
      }
      finally
      {
         cursorChg.restore();
      }
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

              )
      )
      {
          final IApplication app = getApplication();

          final CursorChanger cursorChg = new CursorChanger(app.getMainFrame());
          cursorChg.show();
          try
          {
              new SQLFilterCommand(_tree, selObjs[0]).execute();
          }
          finally
          {
              cursorChg.restore();
          }
      }
      else
      {
                //i18n[SQLFilterAction.singleObjectMessage=You must have a
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

  /**
   * OK button pressed so save changes.
   */
  private void performOk()
  {
    CursorChanger cursorChg = new CursorChanger(_app.getMainFrame());
    cursorChg.show();
    try
    {
      final boolean isDebug = s_log.isDebugEnabled();
      long start = 0;
      for (Iterator<IGlobalPreferencesPanel> it = _panels.iterator(); it.hasNext();)
      {
        if (isDebug)
        {
          start = System.currentTimeMillis();
        }
        IGlobalPreferencesPanel pnl = it.next();
        try
        {
          pnl.applyChanges();
        }
        catch (Throwable th)
        {
          final String msg = s_stringMgr.getString("GlobalPreferencesSheet.error.saving", pnl.getTitle());
          s_log.error(msg, th);
          _app.showErrorDialog(msg, th);
        }
        if (isDebug)
        {
          s_log.debug("Panel " + pnl.getTitle()
                + " applied changes in "
                + (System.currentTimeMillis() - start) + "ms");
        }
      }
    }
    finally
    {
         _app.savePreferences(DATATYPE_PREFERENCES);
         cursorChg.restore();
      }

    dispose();
      for (GlobalPreferencesActionListener listener : _listeners) {
         listener.onPerformOk();
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

  public void actionPerformed(ActionEvent evt)
  {
    if (_tree != null)
    {
      CursorChanger cursorChg = new CursorChanger(getApplication().getMainFrame());
      cursorChg.show();
      try
      {
        new RefreshObjectTreeCommand(_tree).execute();
      }
      finally
      {
        cursorChg.restore();
      }
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

   * @param  evt  The current event.
   */
  public void actionPerformed(ActionEvent evt)
  {
    IApplication app = getApplication();
    CursorChanger cursorChg = new CursorChanger(app.getMainFrame());
    cursorChg.show();
    try
    {
      new ShowNativeSQLCommand(_panel).execute();
    }
    finally
    {
      cursorChg.restore();
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

  public void actionPerformed(ActionEvent evt)
  {
    if (_tree != null)
    {
      CursorChanger cursorChg = new CursorChanger(getApplication().getMainFrame());
      cursorChg.show();
      try
      {
        new RefreshObjectTreeItemCommand(_tree).execute();
      }
      finally
      {
        cursorChg.restore();
      }
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

      }
   }

  public void actionPerformed(ActionEvent evt)
  {
      CursorChanger cursorChg = new CursorChanger(getApplication().getMainFrame());
      cursorChg.show();
      try
      {
         new CommitCommand(_session).execute();
      }
      finally
      {
         cursorChg.restore();
      }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

  public void actionPerformed(ActionEvent evt)
  {
    if (_panel != null)
    {
      CursorChanger cursorChg = new CursorChanger(getApplication().getMainFrame());
      cursorChg.show();
      try
      {
        _panel.executeCurrentSQL();
      }
      finally
      {
        cursorChg.restore();
      }
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

      {
         return;
      }

    IApplication app = getApplication();
    CursorChanger cursorChg = new CursorChanger(app.getMainFrame());
    cursorChg.show();
    try
    {
      new CloseAllSQLResultTabsCommand(_panel).execute();
    }
    finally
    {
      cursorChg.restore();
    }
  }
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.