private void displayExample() {
    long ts = 1332170682500677380L;
    String timePattern = TmfTimePreferences.computeTimePattern(fPreferenceMap);
    fPatternDisplay.setText(timePattern);
    fPatternDisplay.redraw();

    fExampleDisplay.setText(new TmfTimestampFormat(timePattern).format(ts));
    fExampleDisplay.redraw();
  }
示例#2
0
 public void redraw() {
   super.redraw();
   text.redraw();
   arrow.redraw();
   if (icon != null) icon.redraw();
   if (popup.isVisible()) list.redraw();
 }
示例#3
0
 /**
  * ************************************************************************* Do a half-blink
  * *************************************************************************
  */
 void blink() {
   if (!m_promptText.isDisposed()) {
     if (m_blinkSwitch) {
       m_blinkSwitch = false;
       m_promptText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_YELLOW));
     } else {
       m_blinkSwitch = true;
       m_promptText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
     }
     m_promptText.redraw();
   }
 }
 private void browsePressed() {
   nameList.deselectAll();
   FileDialog subDlg = new FileDialog(getShell(), SWT.OPEN);
   selectedPath = subDlg.open();
   if (selectedPath != null) {
     try {
       selectedText = getFileContents(this.selectedPath);
       testTextField.setText(this.selectedText.getText());
       testTextField.redraw();
     } catch (Exception e) {
       messageLabel.setText(e.getMessage());
       messageLabel.redraw();
     }
   }
 }
示例#5
0
 /**
  * ************************************************************************* Start the blinking
  * *************************************************************************
  */
 private synchronized void stopBlinking() {
   if (m_blinker != null) {
     m_blinker.stopBlinking();
     try {
       m_blinker.interrupt();
       m_blinker.join();
     } catch (Exception e) {
     }
     ;
     m_blinker = null;
   }
   if (m_sounder != null) {
     m_sounder.cancel();
     m_sounder = null;
   }
   if (m_blinkerLauncher != null) {
     m_blinkerLauncher.cancel();
     m_blinkerLauncher = null;
   }
   // Ensure the text field has white background color
   m_promptText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
   m_promptText.redraw();
 }