예제 #1
0
 @Override
 protected void okPressed() {
   final String s = expressionField.getText().trim();
   if (s.length() == 0) {
     MessageBox msg = new MessageBox(getShell(), SWT.ICON_WARNING);
     msg.setText(getShell().getText());
     msg.setMessage(Messages.TclAddWatchpointDialog_watchpointError);
     msg.open();
     return;
   }
   expression = s;
   super.okPressed();
 }
 /* (non-Javadoc)
  * @see org.eclipse.jface.dialogs.Dialog#okPressed()
  */
 @Override
 protected void okPressed() {
   updateRefactoring();
   super.okPressed();
 }