Skip to content

Commit

Permalink
Merge pull request #3710 from inception-project/bugfix/3705-annotatio…
Browse files Browse the repository at this point in the history
…n.default-preferences.page-size-is-ignored-even-if-defined-in-settings.properties

#3705 - annotation.default-preferences.page-size is ignored even if defined in settings.properties
  • Loading branch information
reckart authored Jan 10, 2023
2 parents 7c96357 + 8c03b51 commit 1c5e7f0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import de.tudarmstadt.ukp.clarin.webanno.model.AnnotationLayer;
import de.tudarmstadt.ukp.clarin.webanno.model.Mode;
import de.tudarmstadt.ukp.clarin.webanno.model.Project;
import de.tudarmstadt.ukp.clarin.webanno.support.ApplicationContextProvider;
import de.tudarmstadt.ukp.inception.preferences.Key;
import de.tudarmstadt.ukp.inception.preferences.PreferencesService;
import de.tudarmstadt.ukp.inception.rendering.coloring.ColoringService;
Expand Down Expand Up @@ -329,6 +330,14 @@ public static class BratAnnotationEditorManagerPrefs

private int defaultPageSize = 10;

public BratAnnotationEditorManagerPrefs()
{
AnnotationEditorDefaultPreferencesProperties defaults = ApplicationContextProvider
.getApplicationContext()
.getBean(AnnotationEditorDefaultPreferencesProperties.class);
defaultPageSize = defaults.getPageSize();
}

public int getDefaultPageSize()
{
return defaultPageSize;
Expand Down

0 comments on commit 1c5e7f0

Please sign in to comment.