Example #1
0
  /**
   * Parse and store the tokenized version of the macro.
   *
   * @layerV the array containing the layer description to be inherited.
   */
  private void macroStore(Vector<LayerDesc> layerV) {
    macro.setLibrary(library); // Inherit the library
    macro.setLayers(layerV); // Inherit the layers
    changed = true;

    if (macroDesc != null) {
      ParserActions pa = new ParserActions(macro);
      pa.parseString(new StringBuffer(macroDesc));
      // Recursive call
    }
  }
Example #2
0
 /**
  * Set the layer vector.
  *
  * @param layerV the layer vector.
  */
 public void setLayers(Vector<LayerDesc> layerV) {
   macro.setLayers(layerV);
 }