Examples of IApplication


Examples of net.sourceforge.squirrel_sql.client.IApplication

  {
    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

Examples of net.sourceforge.squirrel_sql.client.IApplication

   */
  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

Examples of net.sourceforge.squirrel_sql.client.IApplication

   */
  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

Examples of net.sourceforge.squirrel_sql.client.IApplication

   *
   * @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

Examples of net.sourceforge.squirrel_sql.client.IApplication

   *
   * @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

Examples of net.sourceforge.squirrel_sql.client.IApplication

         createGUI(session, stayOnTop, autoRefeshPeriod);
      }

      private void createGUI(ISession session, boolean stayOnTop, int autoRefeshPeriod)
      {
         IApplication app = session.getApplication();
         setUseRolloverButtons(true);
         setFloatable(false);
         add(new GetDBOutputAction(app, _resources, _dbOutputPanel));
         add(new ClearDBOutputAction(app, _resources, _dbOutputPanel));
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.IApplication

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

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

    coll.add(new ExportAliasesAction(app, _resources, this));
    coll.add(new ExportConfigurationAction(app, _resources, this));
    coll.add(new ExportDriversAction(app, _resources, this));
    coll.add(new ExportSettingsAction(app, _resources, this));

    // Load plugin preferences.
    loadPrefs();

    _exportMenu = createExportMenu();
    app.addToMenu(IApplication.IMenuIDs.PLUGINS_MENU, _exportMenu);
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.IApplication

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

    final JMenu exportMenu = _resources.createMenu(ExportConfigResources.IMenuResourceKeys.EXPORT);
    _resources.addToMenu(coll.get(ExportConfigurationAction.class), exportMenu);
    _resources.addToMenu(coll.get(ExportAliasesAction.class), exportMenu);
    _resources.addToMenu(coll.get(ExportDriversAction.class), exportMenu);
    _resources.addToMenu(coll.get(ExportSettingsAction.class), exportMenu);

    app.addToMenu(IApplication.IMenuIDs.SESSION_MENU, exportMenu);

    return exportMenu;
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.IApplication

      }
   }

   private void createGUI()
   {
      final IApplication app = _session.getApplication();
      setLayout(new BorderLayout());
      _textArea = new JTextArea();
      _textArea.setEditable(false);
      add(new JScrollPane(_textArea,
         JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.IApplication

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

    coll.add(new ActivateIndexAction(app, _resources, this));
    coll.add(new DeactivateIndexAction(app, _resources, this));

    _firebirdMenu = createFirebirdMenu();
    app.addToMenu(IApplication.IMenuIDs.SESSION_MENU, _firebirdMenu);
        super.registerSessionMenu(_firebirdMenu);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.