Package net.sourceforge.squirrel_sql.fw.gui

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


   {

      if (_session != null)
      {
         IObjectTreeAPI objectTreeAPI = _session.getSessionSheet().getObjectTreePanel();
         CursorChanger cursorChg = new CursorChanger(getApplication().getMainFrame());
         cursorChg.show();
         try
         {
            new RefreshObjectTreeCommand(objectTreeAPI).execute();
         }
         finally
         {
            cursorChg.restore();
         }
      }
   }
View Full Code Here


   * @param  evt  The current event.
   */
  public void actionPerformed(ActionEvent evt)
  {
    IApplication app = getApplication();
    CursorChanger cursorChg = new CursorChanger(app.getMainFrame());
    cursorChg.show();
    try
    {
         ISession activeSession = getApplication().getSessionManager().getActiveSession();
         if(   activeSession.getActiveSessionWindow() instanceof SessionInternalFrame
            || activeSession.getActiveSessionWindow() instanceof SQLInternalFrame)
         {
            // Can't work with ISessionAction because if a result window is on top
            // the session in a ISessionAction is null.
         new CloseAllSQLResultWindowsCommand(activeSession.getSQLPanelAPIOfActiveSessionWindow()).execute();
         }
    }
    finally
    {
      cursorChg.restore();
    }
  }
View Full Code Here

    public void run()
    {
      synchronized (ObjectTree.this._syncObject)
      {
        CursorChanger cursorChg = new CursorChanger(ObjectTree.this);
        cursorChg.show();
        try
        {
               if(_refreshSchemaInfo)
               {
                  _session.getSchemaInfo().reload(_node.getDatabaseObjectInfo());
               }

               expandNode(_node, _selectNode);
          if (_selectedPathNames != null)
          {
            final List<TreePath> newlySelectedTreepaths = new ArrayList<TreePath>();
           
            GUIUtils.processOnSwingEventThread(new Runnable()
            {
              public void run()
              {
                        restoreExpansionState(_node, _selectedPathNames, newlySelectedTreepaths);
                        setSelectionPaths(newlySelectedTreepaths.toArray(new TreePath[newlySelectedTreepaths.size()]));
                     }
            });
          }
        }
        finally
        {
          cursorChg.restore();
        }
      }
    }
View Full Code Here

   */
  private synchronized void setURL(URL url)
  {
    if (url != null)
    {
      CursorChanger cursorChg = new CursorChanger(this);
      cursorChg.show();
      try
      {
        // Causes NPE in JDK 1.3.1
        //_contentsTxt.setText("");
        displayURL(url);
        _history.add(url);
        _historyIndex = 0;
      }
      finally
      {
        cursorChg.restore();
      }
    }
  }
View Full Code Here

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

          _app.getSquirrelPreferences().getShowColoriconsInToolbar());
  }

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

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

    app.getResources().setupAction(this, _app.getSquirrelPreferences().getShowColoriconsInToolbar());
  }

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

      _app.getSquirrelPreferences().getShowColoriconsInToolbar());
  }

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

          _app.getSquirrelPreferences().getShowColoriconsInToolbar());
  }

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

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.gui.CursorChanger

Copyright © 2018 www.massapicom. 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.