}
}
FormatXmlAction formatXmlAction = null;
if (!readOnly) {
formatXmlAction = new FormatXmlAction(editor);
FindAndReplaceDialogView findAndReplaceDialog = new FindAndReplaceDialogView(editor);
popupMenu.insert(formatXmlAction, 1);
popupMenu.addSeparator();
popupMenu.add(findAndReplaceDialog);
if (UISupport.isMac()) {
editor.getInputMap().put(KeyStroke.getKeyStroke("meta F"), findAndReplaceDialog);