Package net.sourceforge.squirrel_sql.client.plugin

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


                        boolean foundUDTExp = false;
                        boolean foundDatabaseExp = false;
                        final IPluginManager pmgr = session.getApplication().getPluginManager();
                        for (Iterator<SessionPluginInfo> pluginItr = pmgr.getSessionPluginIterator(); pluginItr.hasNext();)
                        {
                            ISessionPlugin p = (pluginItr.next()).getSessionPlugin();
                            INodeExpander tableExp = p.getDefaultNodeExpander(session, DatabaseObjectType.TABLE_TYPE_DBO);
                            if (tableExp != null)
                            {
                                foundTableExp = true;
                                addExpander(DatabaseObjectType.TABLE_TYPE_DBO, tableExp);
                            }
                            INodeExpander procExp = p.getDefaultNodeExpander(session, DatabaseObjectType.PROC_TYPE_DBO);
                            if (procExp != null)
                            {
                                foundProcExp = true;
                                addExpander(DatabaseObjectType.PROC_TYPE_DBO, procExp);
                            }
                            INodeExpander udtExp = p.getDefaultNodeExpander(session, DatabaseObjectType.UDT_TYPE_DBO);
                            if (udtExp != null)
                            {
                                foundUDTExp = true;
                                addExpander(DatabaseObjectType.UDT_TYPE_DBO, udtExp);
                            }
                            INodeExpander databaseExp = p.getDefaultNodeExpander(session, DatabaseObjectType.DATABASE_TYPE_DBO);
                            if (databaseExp != null) {
                                foundDatabaseExp = true;
                                addExpander(DatabaseObjectType.SESSION, databaseExp);
                            }
                        }
View Full Code Here

TOP

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

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.