Skip to content

Commit

Permalink
Check if logged in before refreshing Project info view
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell committed Sep 13, 2013
1 parent c010206 commit b6b37eb
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -88,6 +88,7 @@ public void run() {
}

public void refreshProjInfoView() {
if (isLoggedIn()) {
// Run as a background job
Job bgJob = new Job("Updating project info ...") {
String projInfoXml;
Expand All @@ -111,7 +112,10 @@ public void run() {
}
};
bgJob.setPriority(Job.SHORT);
bgJob.schedule();
bgJob.schedule();
} else {
showErrorMessageForNotLoggedIn();
}
}

public Map<String,Object> getUserInfo() {
Expand Down Expand Up @@ -380,7 +384,7 @@ public IHost getHPCHost() {
if (hosts.length == 0) {
log.error("No host names found!");
}

for (IHost host : hosts) {
String hostAlias = host.getAliasName();
String hostNameInPrefPage = Activator.getDefault().getPreferenceStore().getString("hostname");
Expand Down

0 comments on commit b6b37eb

Please sign in to comment.