--- a/src/Tools/jEdit/lib/Tools/jedit Wed Nov 01 22:13:38 2017 +0100
+++ b/src/Tools/jEdit/lib/Tools/jedit Thu Nov 02 10:16:22 2017 +0100
@@ -98,11 +98,13 @@
echo
echo " Options are:"
echo " -B use base session image, with theories from other sessions"
+ echo " -F focus on selected logic session: ignore unrelated theories"
echo " -D NAME=X set JVM system property"
echo " -J OPTION add JVM runtime option"
echo " (default $JEDIT_JAVA_SYSTEM_OPTIONS $JEDIT_JAVA_OPTIONS)"
echo " -P use parent session image"
echo " -R open ROOT entry of logic session"
+ echo " -S NAME edit specified logic session, same as abbreviates -B -F -R -l NAME"
echo " -b build only"
echo " -d DIR include session directory"
echo " -f fresh build"
@@ -140,6 +142,7 @@
BUILD_JARS="jars"
ML_PROCESS_POLICY=""
JEDIT_LOGIC_BASE=""
+JEDIT_LOGIC_FOCUS=""
JEDIT_SESSION_DIRS=""
JEDIT_LOGIC_ROOT=""
JEDIT_LOGIC_PARENT=""
@@ -150,7 +153,7 @@
function getoptions()
{
OPTIND=1
- while getopts "BD:J:PRbd:fj:l:m:np:s" OPT
+ while getopts "BFD:J:PRS:bd:fj:l:m:np:s" OPT
do
case "$OPT" in
B)
@@ -160,6 +163,9 @@
D)
JAVA_ARGS["${#JAVA_ARGS[@]}"]="-D$OPTARG"
;;
+ F)
+ JEDIT_LOGIC_FOCUS="true"
+ ;;
J)
JAVA_ARGS["${#JAVA_ARGS[@]}"]="$OPTARG"
;;
@@ -170,6 +176,13 @@
R)
JEDIT_LOGIC_ROOT="true"
;;
+ S)
+ JEDIT_LOGIC="$OPTARG"
+ JEDIT_LOGIC_BASE="true"
+ JEDIT_LOGIC_PARENT=""
+ JEDIT_LOGIC_FOCUS="true"
+ JEDIT_LOGIC_ROOT="true"
+ ;;
b)
BUILD_ONLY=true
;;
@@ -411,8 +424,8 @@
if [ "$BUILD_ONLY" = false ]
then
- export JEDIT_SESSION_DIRS JEDIT_LOGIC JEDIT_LOGIC_BASE JEDIT_LOGIC_PARENT \
- JEDIT_LOGIC_ROOT JEDIT_PRINT_MODE JEDIT_BUILD_MODE
+ export JEDIT_SESSION_DIRS JEDIT_LOGIC JEDIT_LOGIC_BASE JEDIT_LOGIC_FOCUS \
+ JEDIT_LOGIC_PARENT JEDIT_LOGIC_ROOT JEDIT_PRINT_MODE JEDIT_BUILD_MODE
export JEDIT_ML_PROCESS_POLICY="$ML_PROCESS_POLICY"
classpath "$JEDIT_HOME/dist/jedit.jar"
exec isabelle java "${JAVA_ARGS[@]}" isabelle.Main "${ARGS[@]}"