|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.jet.gui.FileActionFactory
edu.utep.cs.jet.gui.ToolActionFactory
public class ToolActionFactory
A factory class to create various tool actions such as compile and
run. These actions may be used for creating menu items or tool bar
items (see MenuFactory).
| Field Summary |
|---|
| Fields inherited from class edu.utep.cs.jet.gui.FileActionFactory |
|---|
compilationDirectory, currentFile, et, frame, viewController |
| Constructor Summary | |
|---|---|
ToolActionFactory(Mainable et,
edu.utep.cs.jet.gui.ViewController vc)
Creates a new instance for the given main program. |
|
| Method Summary | |
|---|---|
boolean |
compilable(String msg)
Is the current file compilable with JML? |
static String |
getBaseName(File file)
Returns the base name of the give file. |
AbstractAction |
getCheckJml()
Returns an action for the Check JML menu item. |
AbstractAction |
getCompile()
Returns an action for the Compile Java menu item. |
AbstractAction |
getCompileJml()
Returns an action for the Compile JML menu item. |
FileChangeListener |
getFileChangeListener()
Returns a file change listener that listens to the opening and closing of the file being edited by the editor. |
AbstractAction |
getRun()
Returns an action for the Run menu item. |
AbstractAction |
getTutorial()
Returns an action for the Tutorial menu item. |
protected void |
setCurrentFile(File file)
Sets the given file to be the current file being edited. |
| Methods inherited from class edu.utep.cs.jet.gui.FileActionFactory |
|---|
getClose, getCloseAll, getDropTarget, getET, getExit, getIcon, getNew, getOpen, getPopDelete, getPopNew, getPopOpen, getPopRefresh, getPopRootDir, getPopTest, getPrint, getPrinterSetup, getSave, getSaveAs, getTestOP, locateFile, saveIfModified, updatePopupActions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToolActionFactory(Mainable et,
edu.utep.cs.jet.gui.ViewController vc)
| Method Detail |
|---|
public AbstractAction getTutorial()
public FileChangeListener getFileChangeListener()
public AbstractAction getCompile()
public AbstractAction getCheckJml()
public boolean compilable(String msg)
public AbstractAction getCompileJml()
public AbstractAction getRun()
public static String getBaseName(File file)
protected void setCurrentFile(File file)
setCurrentFile in class FileActionFactory
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||