1 package edu.asu.cri.MirkE.gui; 2 3 import java.io.File; 4 5 import edu.asu.cri.MirkE.MirkE; 6 7 /*** 8 * @author Siva B.S.D.S 9 * 10 */ 11 public class MirkeContext 12 { 13 /*** 14 * represents mirke object 15 */ 16 private static MirkE mirke = null; 17 18 /*** 19 * Current directory 20 */ 21 private static File currentDirectory = null; 22 23 24 /*** 25 * returns mirke object 26 * 27 * @return mirke object 28 */ 29 public static MirkE getMirke() 30 { 31 return mirke; 32 } 33 34 /*** 35 * sets mirke object 36 * 37 * @param mirkeArg mirke object 38 */ 39 public static void setMirke(MirkE mirkeArg) 40 { 41 mirke = mirkeArg; 42 } 43 44 /*** 45 * Returns current directory 46 * 47 * @return current directory 48 */ 49 public static File getCurrentDirectory() 50 { 51 return currentDirectory; 52 } 53 54 /*** 55 * sets current directory 56 * @param currentDirectoryArg current directory 57 */ 58 public static void setCurrentDirectory(File currentDirectoryArg) 59 { 60 currentDirectory = currentDirectoryArg; 61 } 62 63 }