use of org.omegat.gui.editor.mark.Mark in project omegat by omegat-org.
the class GlossaryAutoCompleterViewTest method setUp.
@Before
public final void setUp() {
Core.setProject(new NotLoadedProject() {
@Override
public ITokenizer getTargetTokenizer() {
return new DefaultTokenizer();
}
@Override
public ProjectProperties getProjectProperties() {
try {
return new ProjectProperties() {
@Override
public Language getTargetLanguage() {
return new Language(Locale.ENGLISH);
}
};
} catch (Exception e) {
return null;
}
}
});
TestCoreInitializer.initEditor(new IEditor() {
@Override
public String getCurrentFile() {
return null;
}
@Override
public String getCurrentTargetFile() {
return null;
}
@Override
public SourceTextEntry getCurrentEntry() {
return null;
}
@Override
public int getCurrentEntryNumber() {
return 0;
}
@Override
public void activateEntry() {
}
@Override
public void commitAndDeactivate() {
}
@Override
public void commitAndLeave() {
}
@Override
public void nextEntry() {
}
@Override
public void prevEntry() {
}
@Override
public void nextEntryWithNote() {
}
@Override
public void prevEntryWithNote() {
}
@Override
public void nextUntranslatedEntry() {
}
@Override
public void nextTranslatedEntry() {
}
@Override
public void nextUniqueEntry() {
}
@Override
public void gotoFile(int fileIndex) {
}
@Override
public void gotoEntry(int entryNum) {
}
@Override
public void gotoEntry(int entryNum, CaretPosition pos) {
}
@Override
public void gotoEntry(String srcString, EntryKey key) {
}
@Override
public void gotoEntryAfterFix(int fixedEntry, String fixedSource) {
}
@Override
public void refreshViewAfterFix(List<Integer> fixedEntries) {
}
@Override
public void refreshView(boolean doCommit) {
}
@Override
public void requestFocus() {
}
@Override
public void changeCase(CHANGE_CASE_TO newCase) {
}
@Override
public void replaceEditText(String text) {
}
@Override
public void replaceEditTextAndMark(String text) {
}
@Override
public void insertText(String text) {
}
@Override
public void insertTextAndMark(String text) {
}
@Override
public void insertTag(String tag) {
}
@Override
public void gotoHistoryForward() {
}
@Override
public void gotoHistoryBack() {
}
@Override
public IEditorSettings getSettings() {
return null;
}
@Override
public void undo() {
}
@Override
public void redo() {
}
@Override
public String getSelectedText() {
return null;
}
@Override
public void setAlternateTranslationForCurrentEntry(boolean alternate) {
}
@Override
public void markActiveEntrySource(SourceTextEntry requiredActiveEntry, List<Mark> marks, String markerClassName) {
}
@Override
public void registerPopupMenuConstructors(int priority, IPopupMenuConstructor constructor) {
}
@Override
public void remarkOneMarker(String markerClassName) {
}
@Override
public IEditorFilter getFilter() {
return null;
}
@Override
public void setFilter(IEditorFilter filter) {
}
@Override
public void removeFilter() {
}
@Override
public String getCurrentTranslation() {
return null;
}
@Override
public void windowDeactivated() {
}
@Override
public void registerUntranslated() {
}
@Override
public void registerEmptyTranslation() {
}
@Override
public void registerIdenticalTranslation() {
}
@Override
public IAutoCompleter getAutoCompleter() {
return null;
}
});
TestCoreInitializer.initGlossary(new IGlossaries() {
@Override
public List<GlossaryEntry> getDisplayedEntries() {
return currentEntries;
}
@Override
public void showCreateGlossaryEntryDialog(Frame parent) {
}
});
currentEntries.clear();
}
Aggregations