/** * Configures and adds the given Commandline. * * @param c commandline to insert * @param insertAtStart If true, c is * inserted at the beginning of the vector of command lines */ public void addConfiguredCommandline(Commandline c, boolean insertAtStart) { if (c == null) { return; } this.configureCommandline(c); if (insertAtStart) { vecCommandlines.insertElementAt(c, 0); } else { vecCommandlines.addElement(c); } }
/** * Configures and adds the given Commandline. * * @param c commandline to insert * @param insertAtStart If true, c is * inserted at the beginning of the vector of command lines */ public void addConfiguredCommandline(Commandline c, boolean insertAtStart) { if (c == null) { return; } this.configureCommandline(c); if (insertAtStart) { vecCommandlines.insertElementAt(c, 0); } else { vecCommandlines.addElement(c); } }