NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to use FileEntry.Folder?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
eppleton
Posted via mailing list.





PostPosted: Sun Jul 19, 2009 7:46 pm    Post subject: How to use FileEntry.Folder? Reply with quote

You can use DataFolder:

http://bits.netbeans.org/dev/javadoc/org-openide-loaders/org/openide/loaders/DataFolder.html

Geertjan has a blog entry showing the usage:

http://blogs.sun.com/geertjan/entry/utility_method_for_retrieving_current

--Toni


Thomas Meyer-6 wrote:
Quote:

Hello,
for example, I read with:
...
FileObject root;
... root initialization ...
Enumeration<? extends FileObject> entries = root.getChildren(true);
...

some files and folders and want to show them in a view. For the files
I have a DataObject which extends MultiDataObject and can show them
in the view. Purely by chance I found in the docs FileEntry.Folder but
I have no idea how to use it. Is it generally the right class for my goal?
(I want to use all the methods oft this class, too.)


Thank you very much,
Thomas Meyer


--
View this message in context: http://www.nabble.com/How-to-use-FileEntry.Folder--tp24551038p24557400.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
Back to top
Thomas Meyer
Posted via mailing list.





PostPosted: Sun Jul 19, 2009 8:23 pm    Post subject: How to use FileEntry.Folder? Reply with quote

Hello,
for example, I read with:
...
FileObject root;
... root initialization ...
Enumeration<? extends FileObject> entries = root.getChildren(true);
...

some files and folders and want to show them in a view. For the files
I have a DataObject which extends MultiDataObject and can show them
in the view. Purely by chance I found in the docs FileEntry.Folder but
I have no idea how to use it. Is it generally the right class for my goal?
(I want to use all the methods oft this class, too.)


Thank you very much,
Thomas Meyer
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo