Package java.util

Examples of java.util.Vector.toArray()


    */
   public static String[] getOtherServerPorts(int serverPort, String[] others) {
      Vector vec = getOtherServerPortVec(serverPort);
      for (int i=0; i<others.length; i++)
         vec.add(others[i]);
      return (String[])vec.toArray(new String[0]);
   }

   /**
    * If you want to start a second xmlBlaster instances
    * set environment that the ports don't conflict
View Full Code Here


        if (context == EDITOR_CONTEXT) {
            if ((o instanceof DataSource) && (canAddDataSource(((DataSource) o)))) {
                v.add(resources.getString("SetSource"));
            }
        }
        return (String[]) v.toArray(new String[v.size()]);
    }

    public void setSource(DataSource ds) {
        if (source != null) {
            source.removeListener(this);
View Full Code Here

    if (v.size()==0) {
      JSynoptic.setStatus(resources.getString("noSource"));
    }

    return (String[])v.toArray(new String[v.size()]);
  }

  /* (non-Javadoc)
   * @see jsynoptic.base.ContextualActionProvider#doAction(double, double, java.lang.Object, java.lang.String)
   */
 
View Full Code Here

        }
        if (o instanceof DataSourceCollection) {
            v.add(resources.getString("SetOneCellPerSource"));
            v.add(resources.getString("CreateNewCellsForEachSource"));
        }
        return (String[]) v.toArray(new String[v.size()]);
    }

    /*
     * (non-Javadoc)
     *
 
View Full Code Here

            return null;
        }
        if (context == EDITOR_CONTEXT) {
        }
        Vector v = new Vector();
        return (String[]) v.toArray(new String[v.size()]);
    }


    public LinkedHashMap getCollectiveActions(DiagramSelection sel, double x, double y, Object o, int context) {
        LinkedHashMap res = new LinkedHashMap();
View Full Code Here

      String tmp = glob.getProperty().get("JdbcDriver.drivers", (String)null);
      if (tmp == null || tmp.indexOf("ORG.as220.tinySQL.dbfFileDriver") < 0) {
         argsVec.add("-JdbcDriver.drivers");
         argsVec.add("ORG.as220.tinySQL.dbfFileDriver");
      }
      glob.init((String[])argsVec.toArray(new String[argsVec.size()]));

      serverThread = EmbeddedXmlBlaster.startXmlBlaster(glob);
      log.info("XmlBlaster is ready for testing JDBC access");

      try {
View Full Code Here

                    //  Delete curve action
                    v.add(resources.getStringValue("deleteCurve")+ ";" + ((Curve)_curves.get(i)).getLabel() );
                }
            }
        }
        return (String[])v.toArray(new String[v.size()]);
    }

    public boolean canDoAction(double x, double y, Object o, String action, int context) {
        return true;
    }
View Full Code Here

       String javaExtDirs = System.getProperty("java.ext.dirs");
       if (javaExtDirs != null && javaExtDirs.length() > 0 ) vec.add(javaExtDirs);
       String javaHome = System.getProperty("java.home");
       if (javaHome != null && javaHome.length() > 0 vec.add(javaHome);

       String[] ret = (String[])vec.toArray(new String[vec.size()]);
       return ret;
    }


   /**
 
View Full Code Here

            else
            {
               lList.add(lToken);
            }
         }
         mSchedulableArgumentList = (String[]) lList.toArray(new String[0]);
      }
      mSchedulableArguments = pArgumentList;
      mIsRestartPending = true;
   }
View Full Code Here

                  );
               }
            }
            lList.add(lClass);
         }
         mSchedulableArgumentTypeList = (Class[]) lList.toArray(new Class[0]);
      }
      mSchedulableArgumentTypes = pTypeList;
      mIsRestartPending = true;
   }
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.