/** inserts the source text of a segment at cursor position */ public void editInsertSourceMenuItemActionPerformed() { if (!Core.getProject().isProjectLoaded()) return; String toInsert = Core.getEditor().getCurrentEntry().getSrcText(); if (Preferences.isPreference(Preferences.GLOSSARY_REPLACE_ON_INSERT)) { toInsert = EditorUtils.replaceGlossaryEntries(toInsert); } Core.getEditor().insertText(toInsert); }