Skip to content

Commit

Permalink
Added sub task to inform user information is accessed
Browse files Browse the repository at this point in the history
This fixes #298
  • Loading branch information
Vijayan88 committed Oct 1, 2015
1 parent 7dd3e36 commit 0a7f892
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void stream(String fileName, final boolean isNum,
String accessToken;
String accessTokenSecret;
terminate = false;
monitor.subTask("Accessing User key");
monitor.subTask("Accessing User Information to authenticate...");
consumerKey = CommonUiActivator.getDefault().getPreferenceStore()
.getString("ckey");
consumerSecret = CommonUiActivator.getDefault().getPreferenceStore()
Expand All @@ -69,8 +69,10 @@ public void stream(String fileName, final boolean isNum,
.setOAuthConsumerSecret(consumerSecret)
.setOAuthAccessToken(accessToken)
.setOAuthAccessTokenSecret(accessTokenSecret);
monitor.worked(2);
twitterStream = new TwitterStreamFactory(cb.build()).getInstance();
monitor.subTask("User Information is Verified");
monitor.worked(2);
monitor.subTask("Started Streaming your request...");

// Create File
File streamFile = new File(fileName);
Expand Down

0 comments on commit 0a7f892

Please sign in to comment.