Example usage for org.eclipse.jface.wizard WizardDialog setMessage

List of usage examples for org.eclipse.jface.wizard WizardDialog setMessage

Introduction

In this page you can find the example usage for org.eclipse.jface.wizard WizardDialog setMessage.

Prototype

public void setMessage(String newMessage, int newType) 

Source Link

Document

Sets the message for this dialog with an indication of what type of message it is.

Usage

From source file:ca.mcgill.cs.swevo.qualyzer.handlers.ImportProjectHandler.java

License:Open Source License

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {

    Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
    ProjectImportWizard wizard = new ProjectImportWizard();
    WizardDialog wDialog = new WizardDialog(shell, wizard);
    wDialog.create();//from  www  .  j a v a  2s .c  o  m
    wDialog.setMessage(Messages.getString("wizards.ProjectImportWizard.title"), IMessageProvider.INFORMATION);
    wDialog.setBlockOnOpen(!fTesting);
    wDialog.open();
    fTester.execute(wDialog);

    return null;
}