code: private void showMacroResolverDialog(CmsResource resource) {
  
          final Window window = CmsBasicDialog.prepareWindow(DialogWidth.wide);
          window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_COPY_MOVE_SET_MACRO_VALUES_TITLE_0));
          m_macroDialog = new CmsMacroResolverDialog(new Runnable() {
  
              public void run() {
  
                  Map<String, String> map = getMacroMap();
                  window.close();
                  submit(true, map); //Overwrite true because this was checked first. If no overwrite, window is closed and this code isn't called
              }
          }, new Runnable() {
  
              public void run() {
  
                  window.close();
                  cancel();
              }
          }, resource);
          m_macroDialog.displayResourceInfo(Collections.singletonList(resource));
          window.setContent(m_macroDialog);
          UI.getCurrent().addWindow(window);
      }
docs: Displays the resolve macro dialog.<p>
  
  @param resource to be copied.