Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
toward support for overriding open menu
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsinclair committed Aug 9, 2016
1 parent 5dbc0b1 commit 4544539
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server-settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,12 @@ uri_path = /
# setting allows you to direct VoyantServer logs to a file instead, which is especially
# useful when you want to leave a server running and detached from the console
# value should be true or anything else for false (including blank).
logs_file =
logs_file =

# This is a query string that defines which corpora appear in the drop-down menu when
# the user opens an existing corpus. If this is commented out or blank then the default value
# is used (currently the Austen and Shakespeare corpora). Corpora are defined using a URL
# query syntax where the key is the corpus ID and the value is the label that appears in the
# interface. For instance, this would be the default:
# open_menu = shakespeare=Shakespeare's Plays&austen=Austen's Novels
open_menu = test one=three
7 changes: 7 additions & 0 deletions src/org/aw20/jettydesktop/ui/Executor.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ else if (new File(JDK_HOME, "javaw").exists() )
// force UTF-8
programArgs.add("-Dfile.encoding=UTF-8");

if (options.containsKey("open_menu")) {
String openMenu = options.get("open_menu");
if (openMenu!=null && openMenu.isEmpty()==false) {
programArgs.add("\"-Dorg.voyanttools.voyant.open_menu="+openMenu+"\"");
}
}

if (options.getMemoryJVM() != null)
programArgs.add("-Xmx" + options.getMemoryJVM() + "m");

Expand Down

0 comments on commit 4544539

Please sign in to comment.