Package net.sourceforge.squirrel_sql.client.plugin

Examples of net.sourceforge.squirrel_sql.client.plugin.IPlugin


   {
      CursorChanger cursorChg = new CursorChanger(getApplication().getMainFrame());
      cursorChg.show();
      try
      {
         IPlugin plugin = _session.getApplication().getDummyAppPlugin();
         _session.rollback();
      }
      finally
      {
         cursorChg.restore();
View Full Code Here


     return result;
  }

  public static IPlugin getMockPlugin(EasyMockHelper mockHelper)
   {
      IPlugin mockPlugin = mockHelper.createMock(IPlugin.class);
      return mockPlugin;
   }
View Full Code Here

    _plugin = plugin;
  }

  public void actionPerformed(ActionEvent evt) {
    if (_session != null) {
      IPlugin plugin = _session.getApplication().getDummyAppPlugin();
      IObjectTreeAPI treeAPI = _session.getSessionInternalFrame().getObjectTreeAPI();
      final IDatabaseObjectInfo[] dbObjs = treeAPI.getSelectedDatabaseObjects();
           
      if (dbObjs.length > 0) {
                try {
View Full Code Here

    _plugin = plugin;
  }

  public void actionPerformed(ActionEvent evt) {
    if (_session != null) {
      IPlugin plugin = _session.getApplication().getDummyAppPlugin();
      IObjectTreeAPI treeAPI = _session.getSessionInternalFrame().getObjectTreeAPI();
      IDatabaseObjectInfo[] dbs = treeAPI.getSelectedDatabaseObjects();
      ObjectTreeNode[] nodes = treeAPI.getSelectedNodes();
      if (dbs.length > 0)
                new TruncateLogCommand(_session, _plugin, dbs).execute();
View Full Code Here

  public void actionPerformed(ActionEvent evt)
  {
    if (_session != null)
    {
      IPlugin plugin = _session.getApplication().getDummyAppPlugin();
      IObjectTreeAPI treeAPI = _session.getSessionInternalFrame().getObjectTreeAPI();
      IDatabaseObjectInfo[] dbs = treeAPI.getSelectedDatabaseObjects();
      ObjectTreeNode[] nodes = treeAPI.getSelectedNodes();
      if (dbs.length > 0)
      {
View Full Code Here

    _plugin = plugin;
  }

  public void actionPerformed(ActionEvent evt) {
    if (_session != null) {
      IPlugin plugin = _session.getApplication().getDummyAppPlugin();
      IObjectTreeAPI treeAPI = _session.getSessionInternalFrame().getObjectTreeAPI();
      IDatabaseObjectInfo[] dbs = treeAPI.getSelectedDatabaseObjects();
      ObjectTreeNode[] nodes = treeAPI.getSelectedNodes();
      if (dbs.length > 0)
                new ShrinkDatabaseCommand(_session, _plugin, dbs).execute();
View Full Code Here

        boolean dropOnly = getDropOnly();
        ApplicationArguments.initialize(new String[0]);
        ResourceBundle bundle = ResourceBundle.getBundle(props);
        String prefsDir = bundle.getString("prefsDir");
        System.out.println("Reading preferences from prefs.xml in "+prefsDir);
        IPlugin plugin = new MockPlugin(prefsDir);
        PreferencesManager.initialize(plugin);
        prefs = PreferencesManager.getPreferences();
        System.out.println("Copying primary keys: "+prefs.isCopyPrimaryKeys());
       
        MockSessionInfoProvider provider = new MockSessionInfoProvider(args[0], dropOnly);
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.plugin.IPlugin

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.