Package net.sourceforge.squirrel_sql.fw.preferences

Examples of net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean


    return border;
  }

  protected void loadData()
  {
    IQueryTokenizerPreferenceBean _prefs = _prefsManager.getPreferences();
    removeMultiLineCommentCheckBox.setSelected(_prefs.isRemoveMultiLineComments());
    lineCommentTextField.setText(_prefs.getLineComment());
    statementSeparatorTextField.setText(_prefs.getStatementSeparator());
    if (_showProcSep)
    {
      procedureSeparatorTextField.setText(_prefs.getProcedureSeparator());
    }
    useCustomQTCheckBox.setSelected(_prefs.isInstallCustomQueryTokenizer());
    updatePreferenceState();
  }
View Full Code Here


    updatePreferenceState();
  }

  protected void save()
  {
    IQueryTokenizerPreferenceBean _prefs = _prefsManager.getPreferences();
    _prefs.setRemoveMultiLineComments(removeMultiLineCommentCheckBox.isSelected());
    _prefs.setLineComment(lineCommentTextField.getText());
    _prefs.setStatementSeparator(statementSeparatorTextField.getText());
    if (_showProcSep)
    {
      _prefs.setProcedureSeparator(procedureSeparatorTextField.getText());
    }
    _prefs.setInstallCustomQueryTokenizer(useCustomQTCheckBox.isSelected());
    _prefsManager.savePrefs();
  }
View Full Code Here

    * custom query tokenizer, and if so configure installs it.
    *
    * @param session the session to install the custom query tokenizer in.
    */
   private void installMssqlQueryTokenizer(ISession session) {
       IQueryTokenizerPreferenceBean _prefs = _prefsManager.getPreferences();

       if (_prefs.isInstallCustomQueryTokenizer()) {
           session.setQueryTokenizer(new MSSQLQueryTokenizer(_prefs));
       }
   }
View Full Code Here

   *           the session to install the custom query tokenizer in.
   */
  private void installMysqlQueryTokenizer(ISession session)
  {

    IQueryTokenizerPreferenceBean _prefs = _prefsManager.getPreferences();

    if (_prefs.isInstallCustomQueryTokenizer())
    {
      session.setQueryTokenizer(new MysqlQueryTokenizer(_prefs));
    }

  }
View Full Code Here

   */
  @Override
  protected void loadData()
  {
    super.loadData();
    IQueryTokenizerPreferenceBean prefs = _prefsManager.getPreferences();
    OraclePreferenceBean oraclePrefs = (OraclePreferenceBean) prefs;
    excludeRecycleBinTablesCheckBox.setSelected(oraclePrefs.isExcludeRecycleBinTables());
    showErrorOffsetCheckBox.setSelected(oraclePrefs.isShowErrorOffset());
    if (oraclePrefs.getInitSessionTimezone()) {
      initSessionTimezoneCheckBox.setSelected(true);
View Full Code Here

   * @see net.sourceforge.squirrel_sql.client.plugin.gui.PluginQueryTokenizerPreferencesPanel#save()
   */
  @Override
  protected void save()
  {
    IQueryTokenizerPreferenceBean prefs = _prefsManager.getPreferences();
    OraclePreferenceBean oraclePrefs = (OraclePreferenceBean) prefs;
    oraclePrefs.setExcludeRecycleBinTables(excludeRecycleBinTablesCheckBox.isSelected());
    oraclePrefs.setShowErrorOffset(showErrorOffsetCheckBox.isSelected());
    oraclePrefs.setInitSessionTimezone(initSessionTimezoneCheckBox.isSelected());
    if (initSessionTimezoneCheckBox.isSelected()) {
View Full Code Here

     * @see net.sourceforge.squirrel_sql.client.plugin.gui.PluginQueryTokenizerPreferencesPanel#loadData()
     */
    @Override
    protected void loadData() {
        super.loadData();
        IQueryTokenizerPreferenceBean prefs = _prefsManager.getPreferences();
        DerbyPreferenceBean derbyPrefs = (DerbyPreferenceBean)prefs;
        readClobsFullyCheckBox.setSelected(derbyPrefs.isReadClobsFully());
    }
View Full Code Here

    /**
     * @see net.sourceforge.squirrel_sql.client.plugin.gui.PluginQueryTokenizerPreferencesPanel#save()
     */
    @Override
    protected void save() {
        IQueryTokenizerPreferenceBean prefs = _prefsManager.getPreferences();
        DerbyPreferenceBean derbyPrefs = (DerbyPreferenceBean)prefs;
        derbyPrefs.setReadClobsFully(readClobsFullyCheckBox.isSelected());
        super.save();
    }
View Full Code Here

     * custom query tokenizer, and if so configure installs it.
     *
     * @param session the session to install the custom query tokenizer in.
     */
    private void installSybaseQueryTokenizer(ISession session) {
        IQueryTokenizerPreferenceBean _prefs = _prefsManager.getPreferences();
       
        if (_prefs.isInstallCustomQueryTokenizer()) {
            session.setQueryTokenizer(new SybaseQueryTokenizer(_prefs));
        }
    }
View Full Code Here

    if (schema!=null) {
    QueryTokenizer tokenizer=new QueryTokenizer(";","--",true);
    QueryTokenizer extraTokenizer=null;
    if (DbConnectionFactory.isMsSql()) {
      //";","--",true
      IQueryTokenizerPreferenceBean prefs = new MSSQLPreferenceBean();
      //prefs.setStatementSeparator("GO");
      extraTokenizer=new MSSQLQueryTokenizer(prefs);
    }else if(DbConnectionFactory.isOracle()){
      IQueryTokenizerPreferenceBean prefs = new OraclePreferenceBean();
      tokenizer=new OracleQueryTokenizer(prefs);
    }else if(DbConnectionFactory.isMySql()){
      IQueryTokenizerPreferenceBean prefs = new BaseQueryTokenizerPreferenceBean();
      prefs.setProcedureSeparator("#");
      tokenizer=new MysqlQueryTokenizer(prefs);

    }
    tokenizer.setScriptToTokenize(schema.toString());
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean

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.