[kepler-users] Directory Parameter

Peter Reutemann fracpete at waikato.ac.nz
Sun Nov 23 01:12:30 PST 2008


> Hi, I'm doing my own Composite Actor. To do this I need a parameter that
> allows me to select a directory. The same thing that makes FileParameter,
> but for a directory.

Here's an example of how to select only directories with a FileParameter:

    directory = new FileParameter(this, "directory");
    new Parameter(directory, "allowFiles", BooleanToken.FALSE);
    new Parameter(directory, "allowDirectories", BooleanToken.TRUE);

Cheers, Peter
-- 
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174



More information about the Kepler-users mailing list