Package net.sourceforge.squirrel_sql.client.gui.mainframe

Examples of net.sourceforge.squirrel_sql.client.gui.mainframe.MainFrame$IMenuIDs


    return _sqlHistory;
  }

  public synchronized void addToMenu(int menuId, JMenu menu)
  {
    final MainFrame mf = getMainFrame();
    if (mf != null)
    {
      mf.addToMenu(menuId, menu);
    }
    else
    {
      throw new IllegalStateException(s_stringMgr.getString("Application.error.menuadding"));
    }
View Full Code Here


    }
  }

  public synchronized void addToMenu(int menuId, Action action)
  {
    final MainFrame mf = getMainFrame();
    if (mf != null)
    {
      mf.addToMenu(menuId, action);
    }
    else
    {
      throw new IllegalStateException(s_stringMgr.getString("Application.error.menuadding"));
    }
View Full Code Here

   * @param comp
   *           Component to add.
   */
  public void addToStatusBar(JComponent comp)
  {
    final MainFrame mf = getMainFrame();
    if (mf != null)
    {
      mf.addToStatusBar(comp);
    }
    else
    {
      throw new IllegalStateException(s_stringMgr.getString("Application.error.compadding"));
    }
View Full Code Here

   * @param comp
   *           Component to remove.
   */
  public void removeFromStatusBar(JComponent comp)
  {
    final MainFrame mf = getMainFrame();
    if (mf != null)
    {
      mf.removeFromStatusBar(comp);
    }
    else
    {
      throw new IllegalStateException(s_stringMgr.getString("Application.error.compremoving"));
    }
View Full Code Here

       boolean result = false;
      JFileChooser chooser = getFileChooser();
      chooser.setAccessory(new ChooserPreviewer());

      SquirrelPreferences prefs = _sqlPanelAPI.getSession().getApplication().getSquirrelPreferences();
      MainFrame frame = _sqlPanelAPI.getSession().getApplication().getMainFrame();


      if (prefs.isFileOpenInPreviousDir())
      {
         String fileName = prefs.getFilePreviousDir();
View Full Code Here

      }

      JFileChooser chooser = getFileChooser();

      SquirrelPreferences prefs = _sqlPanelAPI.getSession().getApplication().getSquirrelPreferences();
      MainFrame frame = _sqlPanelAPI.getSession().getApplication().getMainFrame();

      for (; ;)
      {
         if (null == _toSaveTo)
         {
View Full Code Here

                } else {
                    // table doesn't exist in source db
                }
                   
            }
            final MainFrame frame = sourceSession.getApplication().getMainFrame();
            if (colDifferences != null && colDifferences.size() > 0) {
                GUIUtils.processOnSwingEventThread(new Runnable() {
                    public void run() {
                        ColumnDiffDialog dialog = new ColumnDiffDialog(frame, false);                
                        dialog.setColumnDifferences(colDifferences);
View Full Code Here

    setupFromPreferences();
  }

  private void createMainFrame()
  {
    _mainFrame = new MainFrame(_app);
      GUIUtils.setMainFrame(_mainFrame);
   }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.gui.mainframe.MainFrame$IMenuIDs

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.