public Parameter subdirs;
protected void _initParameter() throws IllegalActionException,
NameDuplicationException {
parameter = new StringParameter(this, "display");
parameter.setDisplayName("Display (./)");
parameter.setPersistent(false);
parameter.setVisibility(NONE);
directory = new FileParameter(this, "directory");
directory.setDisplayName("Directory");
directory.setExpression(".");
directory.addValueListener(this);
Parameter allowFiles = new Parameter(directory, "allowFiles");
allowFiles.setTypeEquals(BaseType.BOOLEAN);
allowFiles.setToken(BooleanToken.FALSE);
Parameter allowDirectories = new Parameter(directory,
"allowDirectories");
allowDirectories.setTypeEquals(BaseType.BOOLEAN);
allowDirectories.setToken(BooleanToken.TRUE);
fileFilter = new StringParameter(this, "filter");
fileFilter.setDisplayName("File filter (*.xml)");
fileFilter.setExpression("");
fileFilter.addValueListener(this);
subdirs = new Parameter(this, "subdirs");