Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.MessageBox.open()


            public void linkActivated(HyperlinkEvent e) {
                MessageBox dialog = new MessageBox( Display.getCurrent().getActiveShell(),
                                                    SWT.YES | SWT.NO | SWT.ICON_WARNING );
                dialog.setMessage( "Remove this item?" );
                dialog.setText( "Remove this item?" );
                if ( dialog.open() == SWT.YES ) {
                    fact.removeField( row );
                    getModeller().setDirty( true );
                    getModeller().reloadRhs();
                }
            }
View Full Code Here


            public void linkActivated(HyperlinkEvent e) {
                MessageBox dialog = new MessageBox(Display.getCurrent()
                        .getActiveShell(), SWT.YES | SWT.NO | SWT.ICON_WARNING);
                dialog.setMessage("Remove this item?");
                dialog.setText("Remove this item?");
                if (dialog.open() == SWT.YES) {
                    set.removeField(currentRow);
                    getModeller().setDirty(true);
                    getModeller().reloadRhs();
                }
            }
View Full Code Here

            public void linkActivated(HyperlinkEvent e) {
                MessageBox dialog = new MessageBox( Display.getCurrent().getActiveShell(),
                                                    SWT.YES | SWT.NO | SWT.ICON_WARNING );
                dialog.setMessage( "Remove this DSL sentence?" );
                dialog.setText( "Remove this DSL sentence?" );
                if ( dialog.open() == SWT.YES ) {
                    updateModel();
                }
            }

            public void linkEntered(HyperlinkEvent e) {
View Full Code Here

        sourceFileStream.close();
        targetFileStream.close();
      } catch (Exception exception) {
        MessageBox messageBox = new MessageBox(new Shell(new Display()), SWT.OK);
        messageBox.setMessage(exception.toString());
        messageBox.open();
       
        throw new RuntimeException(exception);
      }
    }
}
View Full Code Here

      documentation = new Browser(sashForm, SWT.NONE);
    } catch (SWTError e) {
      MessageBox messageBox = new MessageBox(getShell(), SWT.ICON_ERROR | SWT.OK);
      messageBox.setMessage("Browser cannot be initialized.");
      messageBox.setText("Exit");
      messageBox.open();
    }
    return top;
    }
   
    private void findRepository() {
View Full Code Here

  private boolean shouldRebuild() {
    MessageBox messageBox = new MessageBox(getShell(), SWT.ICON_QUESTION | SWT.YES | SWT.NO);
    messageBox.setText(settingsChanged);
    messageBox.setMessage(rebuildProjectNow);
    return messageBox.open() == SWT.YES;
  }

  private void rebuildProject() {
    Job job = new Job("Rebuilding project") {
      @Override protected IStatus run(IProgressMonitor monitor) {
View Full Code Here

public void dialogOK(String title, String message) {
  Shell shell = new Shell(display);
  MessageBox dialog = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);
  dialog.setText(title);
  dialog.setMessage(message);
  dialog.open();
  editor.setFocus();
}

public void setEditorText(String text) {
  editor.setText(text);
View Full Code Here

        
        MessageBox messageBox = new MessageBox(parentComposite
            .getShell(), messageBoxStyle);
          messageBox.setMessage("Remove all assigned constraints?");

          if (messageBox.open() == SWT.YES)
            new ClearAssignedConstraintSetCommand(assignedConstraintsSet).runAsJob();
         
      }
     
      @Override
View Full Code Here

     
      
    MessageBox messageBox = new MessageBox(zestGraph.getShell(), messageBoxStyle);
      messageBox.setMessage(message);

      int rc = messageBox.open();

      if (rc == SWT.YES)
      return true;
      else
    return false;
View Full Code Here

          MessageBox messageBox = new MessageBox(PlatformUI
              .getWorkbench().getActiveWorkbenchWindow()
              .getShell(), SWT.ICON_ERROR);
          String message = "Can't open LinkWizard. No config for link rules found!";
          messageBox.setMessage(message);
          messageBox.open();
          return;
        }

        if (!linkedText.getCPListProvider().getExecuted())
          linkedText.getCPListProvider().run();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.