Default Implementation of FileLocaion?

Questions on using RSyntaxTextArea should go here.

Moderator: robert

Default Implementation of FileLocaion?

Postby omadawn » Tue Aug 28, 2012 11:40 pm

I'm using TextEditorPane in my editor and have implemented a FileLocation for accessing code on my companies systems and that's working (thanks again for the help.)

however I am now trying to create 'offline' functionality in my code. which would allow you to create documents both locally and remote. Since FileLocation is an abstract class Is there some default implementation of FileLocation that would just use whatever local OS input/output stream?
omadawn
 
Posts: 38
Joined: Sat Jul 21, 2012 7:39 pm

Re: Default Implementation of FileLocaion?

Postby robert » Thu Aug 30, 2012 3:35 am

Use the factory methods FileLocation.create(File) or FileLocation.create(String filePath).
User avatar
robert
 
Posts: 798
Joined: Sat May 10, 2008 5:16 pm

Re: Default Implementation of FileLocaion?

Postby omadawn » Tue Sep 11, 2012 6:28 am

Ha! What a dope. I tried instantiating it and couldn't and just assumed it was a generic. I never thought to look for static methods.

Thanks.
omadawn
 
Posts: 38
Joined: Sat Jul 21, 2012 7:39 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 3 guests

cron