Package net.sourceforge.squirrel_sql.client.plugin

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


    // Go thru all loaded plugins asking for panels.
    PluginInfo[] plugins = _app.getPluginManager().getPluginInformation();
    for (int plugIdx = 0; plugIdx < plugins.length; ++plugIdx)
    {
      PluginInfo pi = plugins[plugIdx];
      if (pi.isLoaded())
      {
        IGlobalPreferencesPanel[] pnls = pi.getPlugin().getGlobalPreferencePanels();
        if (pnls != null && pnls.length > 0)
        {
          for (int pnlIdx = 0; pnlIdx < pnls.length; ++pnlIdx)
          {
            _panels.add(pnls[pnlIdx]);
View Full Code Here


    // Go thru all loaded plugins asking for panels.
    PluginInfo[] plugins = _app.getPluginManager().getPluginInformation();
    for (int plugIdx = 0; plugIdx < plugins.length; ++plugIdx)
    {
      PluginInfo pi = plugins[plugIdx];
      if (pi.isLoaded())
      {
        INewSessionPropertiesPanel[] pnls =
          pi.getPlugin().getNewSessionPropertiesPanels();
        if (pnls != null && pnls.length > 0)
        {
          for (int pnlIdx = 0; pnlIdx < pnls.length; ++pnlIdx)
          {
            _panels.add(pnls[pnlIdx]);
View Full Code Here

   }

   @Test 
   public void testGetInstalledPlugins() {
     PluginInfo[] pluginInfos = new PluginInfo[2];
     PluginInfo mockPlugin1 = mockHelper.createMock(PluginInfo.class);
     PluginInfo mockPlugin2 = mockHelper.createMock(PluginInfo.class);
     EasyMock.expect(mockPlugin1.getInternalName()).andReturn("plugin1");
     EasyMock.expect(mockPlugin2.getInternalName()).andReturn("plugin2");
     pluginInfos[0] = mockPlugin1;
     pluginInfos[1] = mockPlugin2;
     expect(mockPluginManager.getPluginInformation()).andReturn(pluginInfos);
    
     mockHelper.replayAll();
View Full Code Here

TOP

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

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.