Esempio n. 1
0
 /*
  * @see org.eclipse.jface.window.Window#configureShell(Shell)
  */
 protected void configureShell(Shell newShell) {
   super.configureShell(newShell);
   if (DLTKCore.DEBUG) {
     System.err.println("NewSourceFolderDialog: Add help support"); // $NON-NLS-1$
   }
   // PlatformUI.getWorkbench().getHelpSystem().setHelp(newShell,
   // IDLTKHelpContextIds.NEW_CONTAINER_DIALOG);
 }
 @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();
 }
Esempio n. 4
0
 /* (non-Javadoc)
  * @see org.eclipse.jface.window.Window#create()
  */
 public void create() {
   setShellStyle(getShellStyle() | SWT.RESIZE);
   super.create();
 }
Esempio n. 5
0
 /*
  * @see org.eclipse.jface.window.Window#configureShell(Shell)
  */
 protected void configureShell(Shell newShell) {
   super.configureShell(newShell);
   // PlatformUI.getWorkbench().getHelpSystem().setHelp(newShell,
   // IJavaHelpContextIds.HISTORY_LIST_DIALOG);
 }
 /*
  * @see org.eclipse.jface.window.Window#configureShell(Shell)
  */
 protected void configureShell(Shell newShell) {
   super.configureShell(newShell);
   PlatformUI.getWorkbench()
       .getHelpSystem()
       .setHelp(newShell, IJavaHelpContextIds.EXCLUSION_PATTERN_DIALOG);
 }