frysk.gui.srcwin
Class SourceWindowFactory
java.lang.Object
frysk.gui.srcwin.SourceWindowFactory
public class SourceWindowFactory
- extends Object
SourceWindow factory is the interface through which all SourceWindow objects
in frysk should be created. It takes care of setting paths to resource files
as well as making sure that at most one window is opened per Task. A
singleton class dynamically creating SourceWindows.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
srcWin
protected static SourceWindow srcWin
myTask
public static Task myTask
newProcObserver
public static SourceWindowFactory.AttachedObserver newProcObserver
SourceWindowFactory
public SourceWindowFactory()
createSourceWindow
public static void createSourceWindow(Proc proc)
- Creates a new source window using the given task. The
SourceWindows correspond to tasks in a 1-1 relationship, so if
you try to launch a SourceWindow for a Task and an existing
window has already been created, that one will be brought to
the forefront rather than creating a new window.
- Parameters:
proc
- The Proc to open a SourceWindow for.
createSourceWindow
public static void createSourceWindow(Proc[] procs)
createSourceWindow
public static void createSourceWindow(DebugInfoFrame frame)
createSourceWindow
public static void createSourceWindow(DebugInfoFrame[] frames)
attachToCore
public static void attachToCore(File coreFile)
startNewProc
public static SourceWindowFactory.AttachedObserver startNewProc(String file,
String env_variables,
String options,
String stdin,
String stdout,
String stderr)
printDOM
public static void printDOM(DOMFrysk dom)
- Print out the DOM in XML format
- Parameters:
dom
- The DOMFrysk to output.
removeAttachedObserver
public static void removeAttachedObserver(Task task,
SourceWindowFactory.AttachedObserver attachedObserver)