Examples of ISQLEntryPanel


Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

   {
      ISessionWidget activeSessionWidget = _session.getActiveSessionWindow();

      if (activeSessionWidget instanceof SQLInternalFrame)
      {
         ISQLEntryPanel sqlEntryPanel = ((SQLInternalFrame) activeSessionWidget).getSQLPanelAPI().getSQLEntryPanel();
         sqlEntryPanel.getTextComponent().repaint();
         _session.getParserEventsProcessor(sqlEntryPanel.getIdentifier()).triggerParser();
      }

      if (activeSessionWidget instanceof SessionInternalFrame)
      {
         ISQLEntryPanel sqlEntryPanel = ((SessionInternalFrame) activeSessionWidget).getSQLPanelAPI().getSQLEntryPanel();
         sqlEntryPanel.getTextComponent().repaint();
         _session.getParserEventsProcessor(sqlEntryPanel.getIdentifier()).triggerParser();
      }

   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

  }

  public static ISQLPanelAPI getEasyMockSqlPanelApi()
  {
    ISQLPanelAPI result = createMock(ISQLPanelAPI.class);
    ISQLEntryPanel panel = AppTestUtil.getEasyMockSqlEntryPanel();
    expect(result.getSQLEntryPanel()).andReturn(panel).anyTimes();
    result.addExecuterTabListener(isA(ISQLResultExecuterTabListener.class));
    expectLastCall().anyTimes();
    result.addExecutor(isA(ISQLResultExecuter.class));
    expectLastCall().anyTimes();
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

    return result;
  }

  public static ISQLEntryPanel getEasyMockSqlEntryPanel()
  {
    ISQLEntryPanel result = createMock(ISQLEntryPanel.class);
    expect(result.getBoundsOfSQLToBeExecuted()).andReturn(new int[] { 10, 20 }).anyTimes();
    result.setCaretPosition(org.easymock.EasyMock.anyInt());
    expectLastCall().anyTimes();
    replay(result);
    return result;
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

      {
         doActionPerformed(_sqlEntryPanel, evt);
      }
      else if(null != _session)
      {
         ISQLEntryPanel sqlEntryPanel = _session.getSQLPanelAPIOfActiveSessionWindow().getSQLEntryPanel();
         doActionPerformed(sqlEntryPanel, evt);
      }

  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

    _api = api;
  }

  public void execute() throws BaseException
  {
      ISQLEntryPanel entryPanel = _api.getSQLEntryPanel();

      quoteSQL(entryPanel, false);
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

    _api = api;
  }

  public void execute() throws BaseException
  {
      ISQLEntryPanel entryPanel = _api.getSQLEntryPanel();

      unquoteSQL(entryPanel);
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

            JMenuItem item = (JMenuItem) source;

            Bookmark bookmark =
               plugin.getBookmarkManager().get(item.getText());

            ISQLEntryPanel sqlEntryPanel;

            if (session.getActiveSessionWindow() instanceof SessionInternalFrame)
            {
               sqlEntryPanel = ((SessionInternalFrame) session.getActiveSessionWindow()).getSQLPanelAPI().getSQLEntryPanel();
            }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

  {
      GUIUtils.processOnSwingEventThread(new Runnable()
      {
         public void run()
         {
            ISQLEntryPanel findEntryPanel = objectTreePanel.getFindController().getFindEntryPanel();

            CodeCompletionInfoCollection c = new CodeCompletionInfoCollection(session, CodeCompletionPlugin.this, false);

            CompleteCodeAction cca =
               new CompleteCodeAction(session.getApplication(),
                  CodeCompletionPlugin.this,
                  findEntryPanel,
                  session,
                  c,
                  objectTreePanel);


            JComponent comp = findEntryPanel.getTextComponent();
            comp.registerKeyboardAction(cca, _resources.getKeyStroke(cca), JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
         }

      });
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

      {
         doActionPerformed(_sqlEntryPanel, evt);
      }
      else if(null != _session)
      {
         ISQLEntryPanel sqlEntryPanel = _session.getSQLPanelAPIOfActiveSessionWindow().getSQLEntryPanel();
         doActionPerformed(sqlEntryPanel, evt);
      }

  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel

    public void execute() {
        if (session == null) {
           return;
        }

       ISQLEntryPanel sqlEntryPanel;

       if(session.getActiveSessionWindow() instanceof SessionInternalFrame)
       {
          sqlEntryPanel = ((SessionInternalFrame)session.getActiveSessionWindow()).getSQLPanelAPI().getSQLEntryPanel();
       }
       else if(session.getActiveSessionWindow() instanceof SQLInternalFrame)
       {
          sqlEntryPanel = ((SQLInternalFrame)session.getActiveSessionWindow()).getSQLPanelAPI().getSQLEntryPanel();
       }
       else
       {
          return;
       }

       String sql = sqlEntryPanel.getSQLToBeExecuted();
       if(null == sql || 0 == sql.trim().length())
       {
       // i18n[sqlbookmark.noAdd=No text to be added.]
       JOptionPane.showMessageDialog(frame, s_stringMgr.getString("sqlbookmark.noAdd"));
          return;
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.