1 22 23 package org.aspectj.debugger.base; 24 25 29 public class Modes { 30 31 public final static String COMMAND_LINE = "commandline"; 32 public final static String GUI = "gui"; 33 public final static String JBUILDER = "jbuilder"; 34 public final static String JBUILDER3 = "jbuilder3"; 35 public final static String JBUILDER4 = "jbuilder4"; 36 public final static String FORTE = "forte"; 37 public final static String UNSET = "unset"; 38 39 private static String mode = UNSET; 40 41 public static void setMode(String _mode) { 42 mode = _mode; 43 } 44 45 public static String getMode() { 46 return mode; 47 } 48 49 public static boolean isIde() { 50 return getMode().equals(Modes.JBUILDER) 51 || getMode().equals(Modes.JBUILDER3) 52 || getMode().equals(Modes.JBUILDER4) 53 || getMode().equals(Modes.FORTE); 54 } 55 56 public static boolean isJBuilder() { 57 return getMode().equals(Modes.JBUILDER) 58 || getMode().equals(Modes.JBUILDER3) 59 || getMode().equals(Modes.JBUILDER4) 60 ; 61 } 62 63 public static boolean isForte() { 64 return getMode().equals(Modes.FORTE); 65 } 66 } 67 | Popular Tags |