View Javadoc
1   package eu.simuline.m2latex.core;
2   
3   /**
4    * Represents the context in which the target set occurs. 
5    */
6   public enum TargetsContext {
7     /**
8      * Represents the context of {@link Settings#getTargets()}. 
9      * Here the set of targets is a setting. 
10     */
11    targetsSetting {
12      String context() {
13        return "setting 'targets'";
14      }
15    },
16    /**
17     * Represents the context of {@link Settings#getDocClassesToTargets()}. 
18     * Here the set of targets occurs within a chunk in a setting. 
19     */
20    inChunkSetting {
21      String context() {
22        return "a chunk of setting 'docClassesToTargets'";
23      }
24    },
25    /**
26     * Represents the context of a magic comment in a latex main file. 
27     * Here, the set of targets occurs within a comment of the form 
28     * <code>%! LMP ... targets=<target set>
29     */
30    targetsMagic {
31      String context() {
32        return "magic comment 'targets'";
33      }
34    };
35  
36    abstract String context();
37  }