Package net.sourceforge.squirrel_sql.client

Examples of net.sourceforge.squirrel_sql.client.IApplication


    _cache.save();
    super.unload();
  }

  private void createMenu() {
    IApplication app = getApplication();
    ActionCollection coll = app.getActionCollection();

    JMenu menu = _resources.createMenu(IMenuResourceKeys.QUERIES);
    _resources.addToMenu(coll.get(OrganizeSavedQueriesAction.class), menu);
    menu.addSeparator();

    app.addToMenu(IApplication.IMenuIDs.PLUGINS_MENU, menu);
  }
View Full Code Here


   * Initialize this plugin.
   */
  public synchronized void initialize() throws PluginException
  {
    super.initialize();
    IApplication app = getApplication();

    _resources = new SQLPluginResources(BUNDLE_BASE_NAME, this);

    ActionCollection coll = app.getActionCollection();
    coll.add(new CreateTableScriptAction(app, _resources, this));
    coll.add(new CreateSelectScriptAction(app, _resources, this));
    coll.add(new DropTableScriptAction(app, _resources, this));
    coll.add(new CreateDataScriptAction(app, _resources, this));
    coll.add(new CreateTemplateDataScriptAction(app, _resources, this));
View Full Code Here

       "sql2ins", coll.get(CreateDataScriptOfCurrentSQLAction.class));
  }

  private void createMenu()
  {
    IApplication app = getApplication();
    app.addToMenu(IApplication.IMenuIDs.SESSION_MENU, getSessionMenu());
  }
View Full Code Here

    app.addToMenu(IApplication.IMenuIDs.SESSION_MENU, getSessionMenu());
  }

  private JMenu getSessionMenu()
  {
    IApplication app = getApplication();
    ActionCollection coll = app.getActionCollection();

    JMenu menu = _resources.createMenu(IMenuResourceKeys.SCRIPTS);
    _resources.addToMenu(coll.get(CreateDataScriptAction.class), menu);
    _resources.addToMenu(coll.get(CreateTemplateDataScriptAction.class), menu);
    _resources.addToMenu(coll.get(CreateTableScriptAction.class), menu);
View Full Code Here

    return menu;
  }

  private JMenu getTableMenu(boolean includeDrop)
  {
    IApplication app = getApplication();
    ActionCollection coll = app.getActionCollection();

    JMenu menu = _resources.createMenu(IMenuResourceKeys.SCRIPTS);
    _resources.addToMenu(coll.get(CreateDataScriptAction.class), menu);
    _resources.addToMenu(coll.get(CreateTemplateDataScriptAction.class), menu);
    _resources.addToMenu(coll.get(CreateTableScriptAction.class), menu);
View Full Code Here

    /**
     * Initialize this plugin.
     */
    public synchronized void initialize() throws PluginException {
        super.initialize();
        IApplication app = getApplication();

        _resources = new SQLPluginResources(BUNDLE_BASE_NAME, this);

        ActionCollection coll = app.getActionCollection();
        coll.add(new AddAutoIncrementAction(app, _resources));
        coll.add(new AddColumnAction(app, _resources));
        coll.add(new AddForeignKeyAction(app, _resources));
        coll.add(new AddIndexAction(app, _resources));
        coll.add(new AddLookupTableAction(app, _resources));
View Full Code Here

    * Initialize this plugin.
    */
   public synchronized void initialize() throws PluginException
   {
      super.initialize();
      IApplication app = getApplication();

      _resources =
         new PluginResources(
            "net.sourceforge.squirrel_sql.plugins.userscript.userscript",
            this);



      ActionCollection coll = app.getActionCollection();
      coll.add(new UserScriptAction(app, _resources, this));
      coll.add(new UserScriptSQLAction(app, _resources, this));

      createMenu();
   }
View Full Code Here

   }


   private void createMenu()
   {
      IApplication app = getApplication();
      ActionCollection coll = app.getActionCollection();

      JMenu menu = _resources.createMenu(IMenuResourceKeys.USER_SCRIPT);

      _resources.addToMenu(coll.get(UserScriptSQLAction.class), menu);

      app.addToMenu(IApplication.IMenuIDs.SESSION_MENU, menu);
   }
View Full Code Here

    * Initialize this plugin.
    */
   public synchronized void initialize() throws PluginException
   {
      super.initialize();
      IApplication app = getApplication();


      // Folder within plugins folder that belongs to this
      // plugin.
      try
      {
         _pluginAppFolder = getPluginAppSettingsFolder();
      }
      catch (IOException ex)
      {
         throw new PluginException(ex);
      }

      // Folder to store user settings.
      try
      {
         _userSettingsFolder = getPluginUserSettingsFolder();
      }
      catch (IOException ex)
      {
         throw new PluginException(ex);
      }

      _resources = new CachePluginResources("de.ixdb.squirrel_sql.plugins.cache.cache", this);

      // Load plugin preferences.
      ActionCollection coll = app.getActionCollection();
      coll.add(new ScriptViewAction(app, _resources, this));
      coll.add(new ScriptFunctionAction(app, _resources, this));
      coll.add(new ScriptCdlAction(app, _resources, this));
      coll.add(new ShowNamespacesAction(app, _resources, this));
      coll.add(new ShowQueryPlanAction(app, _resources, this));
View Full Code Here

      s_log.debug("Initializing DB Diff Plugin");
    }

    _resources = new DBDiffPluginResources(DBDiffPlugin.BUNDLE_BASE_NAME, this);

    IApplication app = getApplication();
    ActionCollection coll = app.getActionCollection();
    coll.add(new SelectAction(app, _resources, this));
    coll.add(new CompareAction(app, _resources, this));

  }
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.