DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Parse log file in RCP
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default Parse log file in RCP - 06-04-2009, 11:42 PM

Hi All,
I'm new to RCP plug-in development. I'm currently developing a log parser application. The log is our custom log, which is collected from an occupancy sensor. The log format is as follows:

Quote:
Date Time Occupancy
06/05/2009 09.00 1
06/05/2009 09.30 1
06/05/2009 10.00 0
06/05/2009 10.30 0
06/05/2009 11.00 1
06/05/2009 11.30 1
06/05/2009 12.00 1
The above log means that the room is unoccupied from 10 to 11 and occupied rest of the time from 9 to 12.

I've designed a view with TableViewer control. I want to parse this file and form a Table so that I can bind it with TableViewer.

I've made an extensive search to find any plug-in which could parse the file and form a Table with Regular Expression... But couldn't make it up.

Please throw some light on solving the above problem.

Thanks in Advance...
Regards,
ArunDhaJ
ArunDhaJ's
Reply With Quote
  (#2 (permalink)) Old
Active Contributor
 
Posts: 62
Thanks: 0
Thanked 6 Times in 6 Posts
Join Date: Jun 2009
Default 06-11-2009, 02:32 AM

Maybe, you can try to use the third-party plugin ANTLR.
What u should do is to write a phrase file based on your file former, ANTLR will handle the rest!


www.eclaxy.com
let's perfect the eclipse!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com