Package net.sourceforge.squirrel_sql.plugins.codecompletion.prefs

Examples of net.sourceforge.squirrel_sql.plugins.codecompletion.prefs.CodeCompletionPreferences


  private void loadPrefs()
  {
    try
    {
      _newSessionPrefs = new CodeCompletionPreferences();
      File prefsFile = new File(getPluginUserSettingsFolder(), PREFS_FILE_NAME);
      if(prefsFile.exists())
      {
        XMLBeanReader reader = new XMLBeanReader();
        reader.load(prefsFile, getClass().getClassLoader());
View Full Code Here


   *
   * @return    Array of panels for the properties dialog.
   */
  public ISessionPropertiesPanel[] getSessionPropertiesPanels(ISession session)
  {
    CodeCompletionPreferences sessionPrefs = (CodeCompletionPreferences)session.getPluginObject(this, PLUGIN_OBJECT_PREFS_KEY);

    return new ISessionPropertiesPanel[]
    {
      new CodeCompletionPreferencesController(sessionPrefs)
    };
View Full Code Here

    };
  }

  public void sessionCreated(ISession session)
  {
    CodeCompletionPreferences prefs = (CodeCompletionPreferences) Utilities.cloneObject(_newSessionPrefs, getClass().getClassLoader());
    session.putPluginObject(this, PLUGIN_OBJECT_PREFS_KEY, prefs);
  }
View Full Code Here

      _lastSelectedCompletionNames.remove(name);

      _lastSelectedCompletionNames.add(0, name);


      CodeCompletionPreferences prefs = (CodeCompletionPreferences) _session.getPluginObject(_plugin, CodeCompletionPlugin.PLUGIN_OBJECT_PREFS_KEY);
      int maxLastSelectedCompletionNames = prefs.getMaxLastSelectedCompletionNames();
     
      if(maxLastSelectedCompletionNames < _lastSelectedCompletionNames.size())
      {
         _lastSelectedCompletionNames.remove(_lastSelectedCompletionNames.size()-1);
      }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.codecompletion.prefs.CodeCompletionPreferences

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.