Project

General

Profile

« Previous | Next » 

Revision 58d10253

Added by Patrick Plitzner almost 4 years ago

Add confirmDialog method for multiple dialog buttons

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/MessagingUtils.java
449 449
        return MessageDialog.openQuestion(AbstractUtility.getShell(), title, message);
450 450
    }
451 451

  
452
    public static int confirmDialog(String title, String message, String...labels){
453
        MessageDialog dialog =new MessageDialog(AbstractUtility.getShell(), title, null, message, MessageDialog.QUESTION,labels, 0);
454
        int result = dialog.open();
455
        return result;
456
    }
457

  
452 458
    /**
453 459
     * Displays a message {@link org.eclipse.jface.dialogs.MessageDialog}.
454 460
     *

Also available in: Unified diff