Package net.sourceforge.squirrel_sql.client

Examples of net.sourceforge.squirrel_sql.client.IApplication$IMenuIDs


    }
  }

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

    final JMenu menu = _resources.createMenu(IMenuResourceKeys.SQLVAL);
    _resources.addToMenu(coll.get(ConnectAction.class), menu);
    _resources.addToMenu(coll.get(DisconnectAction.class), menu);
    _resources.addToMenu(coll.get(ValidateSQLAction.class), menu);

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


   */
  public synchronized void initialize() throws PluginException {
    jaybird2Driver = isJaybird2DriverInstalled();
    PreferencesManager.initialize(this);

    IApplication application = getApplication();
    application.addToMenu(IMenuIDs.PLUGINS_MENU,
        getFirebirdManagerMenu(getApplication(), null, false));
  }
View Full Code Here

         createGUI(session, stayOnTop, autoRefeshPeriod);
      }

      private void createGUI(ISession session, boolean stayOnTop, int autoRefeshPeriod)
      {
         IApplication app = session.getApplication();
         setUseRolloverButtons(true);
         setFloatable(false);
         add(new GetSessionInfoAction(app, _resources, _sessionInfoPanel));

         addStayOnTop(stayOnTop);
View Full Code Here

    */
   public synchronized void initialize() throws PluginException
   {
      super.initialize();

      IApplication app = getApplication();

      // Load resources such as menu items, etc...
      resources = new SQLBookmarkResources(RESOURCE_PATH, this);

      bookmarkManager = new BookmarkManager(this);
      // Load plugin preferences.
      try
      {
         bookmarkManager.load();
      }
      catch (IOException e)
      {
         if (!(e instanceof FileNotFoundException))
         {
            logger.error("Problem loading bookmarkManager", e);
         }
      }

      ActionCollection coll = app.getActionCollection();
      coll.add(new AddBookmarkAction(app, resources, this));
      coll.add(new EditBookmarksAction(app, resources, this));
      coll.add(new RunBookmarkAction(app, resources, this));
      createMenu();

View Full Code Here

   /**
    * Create the initial Sessions->Bookmark menu
    */
   private void createMenu()
   {
      IApplication app = getApplication();

      menu = resources.createMenu(IMenuResourceKeys.BOOKMARKS);

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

    *
    * @param bookmark the bookmark to add.
    */
   protected void addBookmarkItem(Bookmark bookmark)
   {
      IApplication app = getApplication();
      ActionCollection coll = app.getActionCollection();

      SquirrelAction action =
         (SquirrelAction) coll.get(RunBookmarkAction.class);

      JMenuItem item = new JMenuItem(action);
View Full Code Here

 
  public synchronized void initialize()
      throws PluginException
  {
    super.initialize();
    IApplication app = getApplication();

    resources = new ISqlJPluginResources("org.rege.isqlj.squirrel.ISqlJ", this);

    ActionCollection coll = app.getActionCollection();
    coll.add( new ExecuteISqlJAction(app, resources, this));
    createMenu();
  }
View Full Code Here

    super.unload();
  }

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

    JMenu menu = resources.createMenu( IMenuResourceKeys.SCRIPTS);
    resources.addToMenu(coll.get(ExecuteISqlJAction.class), menu);

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

      {
         return;
      }

      SyntaxPluginResources rsrc = _syntaxPugin.getResources();
      IApplication app = _syntaxPugin.getApplication();

      tpa.addToToolsPopup(SyntaxPlugin.i18n.FIND , new FindAction(app, rsrc, isqlEntryPanel));
      tpa.addToToolsPopup(SyntaxPlugin.i18n.FIND_SELECTED , new FindSelectedAction(app, rsrc, isqlEntryPanel));
      tpa.addToToolsPopup(SyntaxPlugin.i18n.REPEAT_LAST_FIND , new RepeatLastFindAction(app, rsrc, isqlEntryPanel));
      tpa.addToToolsPopup(SyntaxPlugin.i18n.MARK_SELECTED , new MarkSelectedAction(app, rsrc, isqlEntryPanel));
View Full Code Here

  /**
   * @see net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin#initialize()
   */
  public void initialize() throws PluginException {
    super.initialize();
    IApplication app = getApplication();
    try {
      _cache = new FoldersCache(app, getPluginUserSettingsFolder());
    } catch (IOException ex) {
      throw new PluginException(ex);
    }
    _cache.load();

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

    ActionCollection coll = app.getActionCollection();

    coll.add(new DeleteSavedQueriesFolderAction(app, _resources));
    coll.add(new NewSavedQueriesFolderAction(app, _resources));
    coll.add(new OrganizeSavedQueriesAction(app, _resources, _cache));
    coll.add(new RenameSavedQueriesFolderAction(app, _resources));
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.IApplication$IMenuIDs

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.