if (image == null || lensImage == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
    private void handleSavePinAndImage()    {        JCheckBox box = view.selection.paintingOnOff;        if (box.isSelected()) {            int i = view.selection.colors.getSelectedIndex();            image = control.getDisplayImageWithPinArea(true, colorSelection[i]);        } else image = control.getDisplayImage();        saveMessage = BOTH_MSG;        lensImage = control.getPinImage();        preview.setImages(image, lensImage);        UIUtilities.centerAndShow(preview);    }