Package org.eclipse.swt.widgets

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


                            .getShell(), SWT.OK | SWT.ICON_ERROR );
                        messageBox.setText( Messages.getString( "ServerConfigurationEditor.Error" ) ); //$NON-NLS-1$
                        messageBox.setMessage( Messages
                            .getString( "ServerConfigurationEditor.AnErrorOccurredWhenWritingTheFileToDisk" ) + "\n" //$NON-NLS-1$ //$NON-NLS-2$
                            + e.getMessage() );
                        messageBox.open();
                        setDirty( true );
                        monitor.done();
                        return;
                    }
                }
View Full Code Here


            MessageBox messageBox = new MessageBox( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
                SWT.OK | SWT.ICON_ERROR );
            messageBox.setText( Messages.getString( "ServerConfigurationEditor.Error" ) ); //$NON-NLS-1$
            messageBox
                .setMessage( Messages.getString( "ServerConfigurationEditor.AnErrorOccurredWhenWritingTheFileToDisk" ) + "\n" + e.getMessage() ); //$NON-NLS-1$ //$NON-NLS-2$
            messageBox.open();
            return;
        }
    }

View Full Code Here

            else
            {
                messageBox.setMessage( NLS.bind(
                    Messages.getString( "DeleteProjectAction.SureToDeleteProjects" ), new Object[] { count } ) ); //$NON-NLS-1$
            }
            if ( messageBox.open() == SWT.YES )
            {
                for ( Iterator<?> iterator = selection.iterator(); iterator.hasNext(); )
                {
                    ProjectWrapper wrapper = ( ProjectWrapper ) iterator.next();
                    Project project = wrapper.getProject();
View Full Code Here

            else
            {
                messageBox.setMessage( NLS.bind(
                    Messages.getString( "DeleteSchemaElementAction.SureToDeleteItems" ), new Object[] { count } ) ); //$NON-NLS-1$
            }
            if ( messageBox.open() == SWT.YES )
            {

                Map<String, Schema> schemasMap = new HashMap<String, Schema>();
                List<SchemaObject> schemaObjectsList = new ArrayList<SchemaObject>();
View Full Code Here

            MessageBox messageBox = new MessageBox( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
                SWT.OK | SWT.ICON_ERROR );
            messageBox.setText( Messages.getString( "NewApacheDSConfigurationFileWizard.Error" ) ); //$NON-NLS-1$
            messageBox
                .setMessage( Messages.getString( "NewApacheDSConfigurationFileWizard.ErrorReadingFile" ) + e.getMessage() ); //$NON-NLS-1$
            messageBox.open();
            return false;
        }
        return true;
    }
View Full Code Here

        MessageBox mbox = new MessageBox(shell, SWT.OK | SWT.CANCEL
                | SWT.ICON_WARNING | SWT.APPLICATION_MODAL);
        mbox.setText(title);
        mbox.setMessage(message);
        return mbox.open() == SWT.OK;
    }

    /**
     * Look at the argument URL for the workspace's version information. Return
     * that version if found and null otherwise.
View Full Code Here

                    mb.setMessage(fileName
                            + " already exists. Do you want to replace it?");

                    // If they click Yes, we're done and we drop out. If
                    // they click No, we redisplay the File Dialog
                    done = mb.open() == SWT.YES;
                } else {
                    // File does not exist, so drop out
                    done = true;
                }
            }
View Full Code Here

      dialog.open();
      if(dialog.getEntity() != null) {
        MessageBox msgBox = new MessageBox(getShell(), SWT.OK);
        msgBox.setText("Search Result:");
        msgBox.setMessage("\n" + dialog.getEntity());
        msgBox.open();
      } else {
        MessageBox msgBox = new MessageBox(getShell(), SWT.OK);
        msgBox.setText("Search Result:");
        msgBox.setMessage("\n" + "CacheEntry does not exist");
        msgBox.open();
View Full Code Here

        msgBox.open();
      } else {
        MessageBox msgBox = new MessageBox(getShell(), SWT.OK);
        msgBox.setText("Search Result:");
        msgBox.setMessage("\n" + "CacheEntry does not exist");
        msgBox.open();
      }
    }
 
  }
 
View Full Code Here

      MessageBox msgBox = new MessageBox(getShell(), SWT.OK);
      msgBox.setText("Help");
      msgBox.setMessage("https://github.com/kylinsoong \n" +
                "https://github.com/kylinsoong/cluster \n" +
                "https://github.com/kylinsoong/CustomizedTools");
      msgBox.open();
    }
   
  }
 
  private class ExitListener implements Listener {
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.