Package java.util

Examples of java.util.ArrayList.toArray()


      actionCategory.setResourcePrefix(configuration.getConfigProperty(base + ".resource-prefix")); //$NON-NLS-1$
      actionCategory.initialize(swingGuiContext);
      categories.add(actionCategory);
    }

    return (ActionCategory[]) categories.toArray
        (new ActionCategory[categories.size()]);
  }
}
View Full Code Here


       
//        m.
//        String preSplit[] = keyword.split(p);
//        String rslt[] = new String[preSplit.length*2];
       
        return (String[])rslt.toArray(emptyStringArray);
       
    }
   
//    static private String[] mySplitx(String p) {
//        String r[] = mySplit(p);
View Full Code Here

          }
          realValues.add(ObjectConverterFactory.convert(componentType, text, getLocator()));
        }

        final Object[] o = (Object[]) Array.newInstance(type.getComponentType(), realValues.size());
        final Object[] objects = realValues.toArray(o);
        beanUtility.setProperty(propertyName, objects);
        return;
      }

      if (propertyType != null)
View Full Code Here

    while (iterator.hasNext())
    {
      final ActionPlugin[] plugins = (ActionPlugin[]) iterator.next();
      list.addAll(Arrays.asList(plugins));
    }
    final ActionPlugin[] plugins = (ActionPlugin[]) list.toArray(new ActionPlugin[list.size()]);
    Arrays.sort(plugins, new ActionPluginComparator());
    PreviewPaneUtilities.addActionsToToolBar(toolBar, plugins, zoomSelectorBox, this);
    return toolBar;
  }
View Full Code Here

      zoomActions.put(cat, PreviewPaneUtilities.buildMenu(menu, plugins, this));
      menus.put(cat, menu);
    }

    final ActionCategory[] categories = (ActionCategory[])
        collectedCategories.toArray(new ActionCategory[collectedCategories.size()]);
    final CategoryTreeItem[] categoryTreeItems =
        PreviewPaneUtilities.buildMenuTree(categories);

    final ArrayList menuList = new ArrayList();
    for (int i = 0; i < categoryTreeItems.length; i++)
View Full Code Here

      {
        retval.add(menu);
      }
    }

    setMenu((JMenu[]) retval.toArray(new JMenu[retval.size()]));
  }

  public String getTitle()
  {
    return title;
View Full Code Here

          }
         
          if(tempSelectors.size() == 0)
            Logger.log(new LogAlert(true,LogAlert.AT_WARNING,MessageText.getString("network.bindError")));
         
          serverSelectors = (VirtualServerChannelSelector[])tempSelectors.toArray(new VirtualServerChannelSelector[tempSelectors.size()]);
        }
      } else
      {
        Logger.log(new LogEvent(LOGID, "Not starting TCP listener on port " + tcp_listen_port + " as protocol disabled"));
      }
View Full Code Here

        /* Create the parameters Map */
        Map parameters = new HashMap();

        parameters.put(
            SYMBOLS_PARAMETER_NAME,
            symbolsAsCollection.toArray(new String[0]));

        parameters.put(
            MAXHEADLINES_PARAMETER_NAME,
            new String[] { maxHeadlinesAsString });

View Full Code Here

        /* Create the parameters Map */
        Map parameters = new HashMap();

        parameters.put(
            CITIES_PARAMETER_NAME,
            citiesAsCollection.toArray(new String[0]));

        parameters.put(
            STYLE_PARAMETER_NAME,
            new String[] { style });

View Full Code Here

                    iofs.add(sig);
                    accumulateInterfaces(cur.getInterfaces(), map, iofs);
                    cur = cur.getSuperFile();
                }
                String[] sigs = new String[iofs.size()];
                m_instanceOfs = (String[])iofs.toArray(sigs);
               
            }
        }
        return m_instanceOfs;
    }
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.