Package net.sourceforge.squirrel_sql.client

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


      //throw new WrappedSQLException(ex);
        }
    }
   
    private JMenu createFullMssqlMenu() {
    final IApplication app = getApplication();
    final ActionCollection coll = app.getActionCollection();

    final JMenu mssqlMenu = _resources.createMenu(MssqlResources.IMenuResourceKeys.MSSQL);
       
        _resources.addToMenu(coll.get(GenerateSqlAction.class),mssqlMenu);
       
View Full Code Here


       
    return mssqlMenu;
  }
   
    private JMenu addToMssqlCatalogMenu(JMenu menu) {
        final IApplication app = getApplication();
    final ActionCollection coll = app.getActionCollection();
        final MssqlPlugin plugin = this;

        final JMenu mssqlMenu;
        if (menu == null)
            mssqlMenu = _resources.createMenu(MssqlResources.IMenuResourceKeys.MSSQL);
View Full Code Here

       
    return mssqlMenu;
    }
   
    private JMenu addToMssqlProcedureMenu(JMenu menu) {
        final IApplication app = getApplication();
    final ActionCollection coll = app.getActionCollection();

        final JMenu mssqlMenu;
        if (menu == null)
            mssqlMenu = _resources.createMenu(MssqlResources.IMenuResourceKeys.MSSQL);
        else
View Full Code Here

    // Load plugin preferences.
    loadPrefs();

    // Install the factory for creating SQL entry text controls.
    final IApplication app = getApplication();
    final ISQLEntryPanelFactory originalFactory = app.getSQLEntryPanelFactory();
    //_sqlEntryFactoryProxy = new OsterSQLEntryAreaFactory(this, originalFactory);

    _sqlEntryFactoryProxy = new SQLEntryPanelFactoryProxy(this, originalFactory);

    app.setSQLEntryPanelFactory(_sqlEntryFactoryProxy);

    _autoCorrectProvider = new AutoCorrectProviderImpl(_userSettingsFolder);

    createMenu();
  }
View Full Code Here

    createMenu();
  }

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

    JMenu menu = _resources.createMenu(IMenuResourceKeys.MENU);
    app.addToMenu(IApplication.IMenuIDs.SESSION_MENU, menu);

    Action act = new ConfigureAutoCorrectAction(app, _resources, this);
    coll.add(act);
    _resources.addToMenu(act, menu);
View Full Code Here

  {
    try
    {
      super.initialize();

      final IApplication app = getApplication();

      _resources = new OracleResources(OraclePlugin.BUNDLE_BASE_NAME, this);

      ActionCollection coll = app.getActionCollection();
      coll.add(new NewDBOutputWorksheetAction(app, _resources));
      coll.add(new NewInvalidObjectsWorksheetAction(app, _resources));
      coll.add(new NewSessionInfoWorksheetAction(app, _resources));
      coll.add(new NewSGATraceWorksheetAction(app, _resources));

      app.getSessionManager().addAllowedSchemaChecker(new IAllowedSchemaChecker()
      {
        public String[] getAllowedSchemas(ISQLConnection con, ISQLAliasExt alias)
        {
          return onGetAllowedSchemas(con, alias);
        }
View Full Code Here

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

    final IApplication app = getApplication();
    final ActionCollection col = getApplication().getActionCollection();

    col.add(new VacuumTableAction(app, _resources));
    col.add(new VacuumDatabaseAction(app, _resources));

    JMenu sessionMenu = createSessionMenu(col);
    app.addToMenu(IApplication.IMenuIDs.SESSION_MENU, sessionMenu);
    super.registerSessionMenu(sessionMenu);

    CellComponentFactory.registerDataTypeFactory(new PostgreSqlXmlTypeDataTypeComponentFactory(),
      java.sql.Types.OTHER, "xml");
    CellComponentFactory.registerDataTypeFactory(
View Full Code Here

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

    final IApplication app = getApplication();
    final ActionCollection coll = app.getActionCollection();

    coll.add(new AnalyzeTableAction(app, _resources, this));
    coll.add(new CreateMysqlTableScriptAction(app, _resources, this));
    coll.add(new CheckTableAction.ChangedCheckTableAction(app, _resources, this));
    coll.add(new CheckTableAction.ExtendedCheckTableAction(app, _resources, this));
    coll.add(new CheckTableAction.FastCheckTableAction(app, _resources, this));
    coll.add(new CheckTableAction.MediumCheckTableAction(app, _resources, this));
    coll.add(new CheckTableAction.QuickCheckTableAction(app, _resources, this));
    coll.add(new ExplainSelectTableAction(app, _resources, this));
    coll.add(new ExplainTableAction(app, _resources, this));
    coll.add(new OptimizeTableAction(app, _resources, this));
    coll.add(new RenameTableAction(app, _resources, this));

    coll.add(new CreateDatabaseAction(app, _resources, this));
    coll.add(new DropDatabaseAction(app, _resources, this));
    coll.add(new AlterTableAction(app, _resources, this));
    // coll.add(new CreateTableAction(app, _resources, this));
    coll.add(new CopyTableAction(app, _resources, this));

    _mySQLMenu = createFullMysqlMenu();
    app.addToMenu(IApplication.IMenuIDs.SESSION_MENU, _mySQLMenu);
    super.registerSessionMenu(_mySQLMenu);

    _prefsManager = new PluginQueryTokenizerPreferencesManager();
    _prefsManager.initialize(this, new MysqlPreferenceBean());
   
View Full Code Here

   *
   * @return The menu object.
   */
  private JMenu createMysqlTableMenu()
  {
    final IApplication app = getApplication();
    final ActionCollection coll = app.getActionCollection();

    final JMenu mysqlMenu = _resources.createMenu(MysqlResources.IMenuResourceKeys.MYSQL);

    _resources.addToMenu(coll.get(CreateMysqlTableScriptAction.class), mysqlMenu);

View Full Code Here

   *
   * @return The menu object.
   */
  private JMenu createFullMysqlMenu()
  {
    final IApplication app = getApplication();
    final ActionCollection coll = app.getActionCollection();

    final JMenu mysqlMenu = _resources.createMenu(MysqlResources.IMenuResourceKeys.MYSQL);

    _resources.addToMenu(coll.get(CreateDatabaseAction.class), mysqlMenu);
    // _resources.addToMenu(coll.get(DropDatabaseAction.class), mysqlMenu);
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.