Package net.sourceforge.squirrel_sql.plugins.derby.prefs

Examples of net.sourceforge.squirrel_sql.plugins.derby.prefs.DerbyPreferenceBean


      _app.getSessionManager().addSessionListener(new SessionListener());

     

      _prefsManager = new PluginQueryTokenizerPreferencesManager();
      _prefsManager.initialize(this, new DerbyPreferenceBean());

      /** Need to do this to pickup user's prefs from file */
      DerbyPreferenceBean prefBean = (DerbyPreferenceBean) _prefsManager.getPreferences();

      if (prefBean.isReadClobsFully()) {
         /* Register custom DataTypeComponent factory for Derby CLOB type */
         CellComponentFactory.registerDataTypeFactory(new DerbyClobDataTypeComponentFactory(),
                                                      2005,
                                                      "CLOB");
      }     
View Full Code Here


         return null;
      }
      if (s_log.isInfoEnabled()) {
         s_log.info("Installing Derby query tokenizer");
      }
      DerbyPreferenceBean prefBean = (DerbyPreferenceBean) _prefsManager.getPreferences();
      if (prefBean.isInstallCustomQueryTokenizer()) {
         DerbyQueryTokenizer tokenizer = new DerbyQueryTokenizer(prefBean.getStatementSeparator(),
                                                                 prefBean.getLineComment(),
                                                                 prefBean.isRemoveMultiLineComments());
         session.setQueryTokenizer(tokenizer);
      }
     
      GUIUtils.processOnSwingEventThread(new Runnable() {
         public void run() {
View Full Code Here

   /**
    * @param session
    */
   private void updateTreeApi(ISession session) {
     DerbyPreferenceBean prefBean = (DerbyPreferenceBean) _prefsManager.getPreferences();
    
      _treeAPI = session.getSessionInternalFrame().getObjectTreeAPI();

      _treeAPI.addDetailTab(DatabaseObjectType.PROCEDURE,
              new ProcedureSourceTab(i18n.SHOW_PROCEDURE_SOURCE, prefBean.getStatementSeparator()));

      _treeAPI.addDetailTab(DatabaseObjectType.VIEW,
                            new ViewSourceTab(i18n.SHOW_VIEW_SOURCE));

      //_treeAPI.addDetailTab(DatabaseObjectType.INDEX, new DatabaseObjectInfoTab());
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.derby.prefs.DerbyPreferenceBean

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.