public static void showMessage(final String text, final String type) {
        int msgWindowType = 0;
        if (type.equals("Error")) {
            msgWindowType |= SWT.ICON_ERROR;
            addError(text);
        }
        if (type.equals("Information")) {
            msgWindowType |= SWT.ICON_INFORMATION;
            addToLog(text);
        }
        MessageBox box = new MessageBox(shell, msgWindowType | SWT.OK);
        box.setMessage(text);
        box.open();
    }