Package net.sourceforge.squirrel_sql.client

Examples of net.sourceforge.squirrel_sql.client.IApplication


  }

  private void createGUI(ISession session)
  {
    setVisible(false);
    final IApplication app = session.getApplication();
    Icon icon = app.getResources().getIcon(getClass(), "frameIcon"); //i18n
    if (icon != null)
    {
      setFrameIcon(icon);
    }

    // This is to fix a problem with the JDK (up to version 1.3)
    // where focus events were not generated correctly. The sympton
    // is being unable to key into the text entry field unless you click
    // elsewhere after focus is gained by the internal frame.
    // See bug ID 4309079 on the JavaSoft bug parade (plus others).
    addWidgetListener(new WidgetAdapter()
    {
      public void widgetActivated(WidgetEvent evt)
      {
            SwingUtilities.invokeLater(new Runnable()
            {
               public void run()
               {
                  _sqlPanel.getSQLEntryPanel().getTextComponent().requestFocus();
               }
            });
      }

         public void widgetClosing(WidgetEvent e)
         {
            _sqlPanel.sessionWindowClosing();
         }
    });

    _sqlPanel = new SQLPanel(getSession(), false);


    // Needed to make the panel set the divider location from preferences
      _sqlPanel.setVisible(true);

    _toolBar = new SQLToolBar(getSession(), _sqlPanel.getSQLPanelAPI());
    JPanel contentPanel = new JPanel(new BorderLayout());
    contentPanel.add(_toolBar, BorderLayout.NORTH);
    contentPanel.add(_sqlPanel, BorderLayout.CENTER);

    Font fn = app.getFontInfoStore().getStatusBarFontInfo().createFont();
    _statusBar.setFont(fn);
    contentPanel.add(_statusBar, BorderLayout.SOUTH);

    RowColumnLabel lblRowCol = new RowColumnLabel(_sqlPanel.getSQLEntryPanel());
    _statusBar.addJComponent(lblRowCol);
View Full Code Here


   private void createGUI(final ISession session)
  {
    setVisible(false);
    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    final IApplication app = session.getApplication();
    Icon icon = app.getResources().getIcon(getClass(), "frameIcon"); //i18n
    if (icon != null)
    {
      setFrameIcon(icon);
    }
View Full Code Here


   public void actionPerformed(ActionEvent evt)
   {
      _aliasesList.setViewAsTree(_toogleComponentHolder.isSelected());
    IApplication application = getApplication();
    if (application != null)
    {
      WindowManager windowManager = application.getWindowManager();
      if (windowManager != null)
      {
        AliasesListInternalFrame aliasesListInternalFrame = windowManager.getAliasesListInternalFrame();
        if (aliasesListInternalFrame != null)
        {
View Full Code Here

      _connSheet = connSheet;
    }

    public void run()
    {
      final IApplication app = _session.getApplication();
      try
      {
        app.getPluginManager().sessionCreated(_session);
        app.getWindowManager().createInternalFrame(_session);
                _connSheet.executed(true);
      }
      catch (Throwable th)
      {
        app.showErrorDialog(s_stringMgr.getString("ConnectToAliasCommand.error.opensession"), th);
      }
    }
View Full Code Here

   *
   * @param  evt  The event being processed.
   */
  public void actionPerformed(ActionEvent evt)
  {
    final IApplication app = getApplication();
    new DisplayPluginSummaryCommand(app, getParentFrame(evt)).execute();
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.IApplication

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.