Package java.util

Examples of java.util.Vector.toArray()


            }
            if (infos.size() == 0) {
                JSynoptic.setStatus(messageWriter.print0args("noInfo"));
                return;
            }
            JOptionPane.showMessageDialog(JSynoptic.gui.getOwner(), infos.toArray(), messageWriter
                    .print0args("sourceInfo"), JOptionPane.INFORMATION_MESSAGE);
            return;
        }
        if (e.getSource() instanceof JMenuItem) {
            JMenuItem jmi = (JMenuItem) e.getSource();
View Full Code Here


    if (context==EDITOR_CONTEXT) {
      v.add(resources.getString("EditPoints"));
      if (this.x.length>=3) v.add(resources.getString("ConvertToPolygon"));
    }

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

  public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {
   
    if (action.equals("mouseOver")) {
View Full Code Here

    else if (o instanceof DataSourceCollection) {
      v.add(resources.getString("SetSources"));
      v.add(resources.getString("AddSources"));
    }

    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

    }

    Vector v = new Vector();
    v.add(resources.getString("properties"));

    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 DataSource && canAddDataSource(((DataSource) o))) {
            v.add(resources.getString("SetSource"));
        }

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

    /*
     * (non-Javadoc)
     *
 
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 (dst.getSources().size() != 0) {
        v.add(resources.getString("addY1Yn"));
      }
    }

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

  public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {
    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
View Full Code Here

    if (v.size()==0) {
      JSynoptic.setStatus(resources.getString("noSource"));
    }
   
//    v.add(resources.getString("SetXUnits"));
    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

            ) {
            ret.addElement(msg);
            //System.out.println("MsgInterceptor: FOUND: Checking msg oid='" + msg.getOid() + "' with state='" + msg.getState() + "' against '" + oid + "' '" + state + "'");
         }
      }
      return  (Msg[])ret.toArray(new Msg[ret.size()]);
   }

   public Msg[] getMsgs() {
      return getMsgs(null, null);
   }
View Full Code Here

    * If you want to start a second xmlBlaster instances
    * set environment that the ports don't conflict
    */
   public static String[] getOtherServerPorts(int serverPort) {
      Vector vec = getOtherServerPortVec(serverPort);
      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

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.