Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » how to implement validation in Import wizard
how to implement validation in Import wizard [message #556461] Wed, 01 September 2010 08:57 Go to next message
raj is currently offline raj
Messages: 19
Registered: January 2010
Location: hyderabad
Junior Member

HI ..

i want to import 2 text files in to my RCP application. how to validate the content in the in text file show errors if any.
before importing it. pls send me any articles or links related.

Thanks and Regards,
Raj,
Re: how to implement validation in Import wizard [message #556472 is a reply to message #556461] Wed, 01 September 2010 09:49 Go to previous message
eshvar60  is currently offline eshvar60
Messages: 51
Registered: March 2010
Member
This is not really an RCP question but here is an answer anyway.

I recommend using the Apache Commons IO library(commons-io-1.4.jar, google it). It has a class called FileUtils which has various utilities for reading files line by line like the readLines(File) method.
Re: how to implement validation in Import wizard [message #556473 is a reply to message #556461] Wed, 01 September 2010 09:40 Go to previous message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 01/09/10 6:27 PM, raj wrote:
> i want to import 2 text files in to my RCP application. how to validate
> the content in the in text file show errors if any.
> before importing it. pls send me any articles or links related.

http://www.eclipse.org/articles/article.php?file=Article-JFa ceWizards/index.html

Google would have helped you much faster than me :-)

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Previous Topic:[CNF] Potential LinkHelper configuration bug
Next Topic:Virtual tree viewer does not redraw after setInput() is called
Goto Forum:
  


Current Time: Thu Jul 24 19:06:18 EDT 2014

Powered by FUDForum. Page generated in 0.01924 seconds