Query on Repository.getDefault()

View: New views
2 Messages — Rating Filter:   Alert me  

Query on Repository.getDefault()

by Varun Nischal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I came across this code-
http://docs.huihoo.com/javadoc/netbeans/5.5/org-openide-filesystems/org/openide/filesystems/Repository.html#getDefaultFileSystem()

FileSystem sfs = Repository.getDefault().getDefaultFileSystem();

Where does this refer to? userdir OR install-dir

Thanks,
Varun
--
"You must do the things you think you cannot do."

RES: Query on Repository.getDefault()

by Eduardo Maurício da Costa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Varun,

It is defined by the Default File System. If you have not changed it, you
are using the System FS, as described in:
http://wiki.netbeans.org/DevFaqSystemFilesystem

Regards,
Eduardo

________________________________________
De: Varun Nischal [mailto:diehard.coder@...]
Enviada em: quinta-feira, 10 de julho de 2008 04:44
Para: dev@...
Assunto: [openide-dev] Query on Repository.getDefault()

Hi,

I came across this code-
http://docs.huihoo.com/javadoc/netbeans/5.5/org-openide-filesystems/org/open
ide/filesystems/Repository.html#getDefaultFileSystem()

FileSystem sfs = Repository.getDefault().getDefaultFileSystem();

Where does this refer to? userdir OR install-dir

Thanks,
Varun
--
"You must do the things you think you cannot do."
--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.


--
Esta mensagem foi verificada pelo sistema de antivírus e
 acredita-se estar livre de perigo.

LightInTheBox - Buy quality products at wholesale price