public void updateSummaryLabel(int candidateCnt, String orgUserName) {
   if (lblSummary != null) {
     lblSummary.setText("Found " + candidateCnt + " deployment candidates");
     FontRegistry registry = new FontRegistry();
     Font boldFont =
         registry.getBold(Display.getCurrent().getSystemFont().getFontData()[0].getName());
     lblSummary.setFont(boldFont);
     lblSummary.update();
   }
 }
Esempio n. 2
0
  /** Updates the label with the current task and subtask names. */
  protected void updateLabel() {
    if (blockedStatus == null) {
      String text = taskLabel();
      fLabel.setText(text);
    } else {
      fLabel.setText(blockedStatus.getMessage());
    }

    // Force an update as we are in the UI Thread
    fLabel.update();
  }
 public void clearSummaryLabel() {
   if (lblSummary != null) {
     lblSummary.setText("");
     lblSummary.update();
   }
 }