Exemplo n.º 1
0
  public PDOMCPPParameter(
      PDOMLinkage linkage, PDOMNode parent, ICPPParameter param, PDOMCPPParameter next)
      throws CoreException {
    super(linkage, parent, param.getNameCharArray());
    fType = null; // This constructor is used for adding parameters to the database, only.
    fDefaultValue = param.getDefaultValue();

    Database db = getDB();
    linkage.storeValue(record + DEFAULT_VALUE, fDefaultValue);
    db.putRecPtr(record + NEXT_PARAM, next == null ? 0 : next.getRecord());

    storeAnnotations(db, param);
  }
Exemplo n.º 2
0
 private void flatDelete(PDOMLinkage linkage) throws CoreException {
   linkage.storeValue(record + DEFAULT_VALUE, null);
   super.delete(linkage);
 }