Examples of IObjectTreeAPI


Examples of net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI

            // So if it's not a DB2 Session we tell SQuirreL the Plugin should not be used.
            return null;
         }

         // Add context menu items to the object tree's view and procedure nodes.
         IObjectTreeAPI otApi = session.getSessionInternalFrame().getObjectTreeAPI();
         otApi.addToPopup(DatabaseObjectType.VIEW, new ScriptDB2ViewAction(getApplication(), _resources, session));
         otApi.addToPopup(DatabaseObjectType.PROCEDURE, new ScriptDB2ProcedureAction(getApplication(), _resources, session));

         return new PluginSessionCallbackAdaptor(this);
    }
    catch(Exception e)
    {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI

     * @param selectedCatalog
     *           the catalog that was selected.
     */
    private void expandTablesForCatalog(ISession session, String selectedCatalog)
    {
      IObjectTreeAPI api = session.getObjectTreeAPIOfActiveSessionWindow();
      api.refreshTree(true);
      if (api.selectInObjectTree(selectedCatalog, null, new FilterMatcher("TABLE", null)))
      {
        ObjectTreeNode[] nodes = api.getSelectedNodes();

        if (nodes.length > 0)
        {
          ObjectTreeNode tableNode = nodes[0];

          // send a tree expansion event to the object tree
          api.expandNode(tableNode);
        }
      }
    }
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.