|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
edu.utep.cs.utjml.canica.Main
public class Main
A graphics user interface to the JML-based unit testing tool for Java. The GUI consists of three main panes, the file browser pane, the editor pane, and the output pane. The explorer pane allows one to browse directories and files, the editor pane allows one to edit one or more Java/JML source programs, and the output pane displays console view, test generation view, and run test view from the GUI. The status bar at the bottom of the GUI shows various status information.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
CLASSPATH
The class path of this program. |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
Main(String name)
Creates a new instance of Canica |
|
| Method Summary | |
|---|---|
void |
changeTheLookAndFeel(int value)
Changes the look and feel of this GUI, using the integer value. |
JMLEditorable |
editor()
Returns the editor of this GUI |
FileBrowserable |
fileBrowser()
Returns the explorer of this GUI. |
JFrame |
frame()
Returns the frame of this GUI. |
String |
getCLASSPATH()
Returns the CLASSPATH specified in the global IDE preferences for Canica |
String |
getHomeDirectory()
Returns the home directory specified in the global IDE preferences for Canica |
int |
getIndentationSize()
Returns the indentation size specified in the editor preferences |
String |
getJavaCompilerHomePath()
Returns the Java Compiler Home path specified in the global IDE preferences for Canica |
String |
getJavaDocPath()
Returns the path specified to the Javadoc tool in the global IDE preferences for Canica |
String |
getJMLDocPath()
Returns the path specified to the JMLdoc tool in the global IDE preferences for Canica |
int |
getMaxFilesOpen()
Returns the maximum number of files that can be opened in the JML editor |
String |
getOptionsToJavaC()
Returns the option values specified to the Java compiler in the global IDE preferences for Canica |
String |
getOptionsToJMLC()
Returns the option values specified to the JML compiler tool in the global IDE preferences for Canica |
boolean |
getPrefToSearchAndReplace()
Returns the preference to the search and replace functionalities located in the JML Editor Subsystem. |
String |
getSyntaxHighlightPath()
Returns the syntax highlighting file path specified in the editor preferences |
String |
getWorkingDirectory()
Returns the working directory assigned by default for Canica |
static void |
main(String[] args)
The main entry point of this GUI. |
OutputPaneable |
outputPane()
Returns the output pane of this GUI. |
void |
putValueToRedoAction(String actionName,
Object redoPresentationName)
Puts a new value to the Redo action in the Edit Menu |
void |
putValueToUndoAction(String actionName,
Object undoPresentationName)
Puts a new value to the Undo action in the Edit Menu |
void |
resetCLASSPATH()
|
void |
resetMenu()
Reset the Menu to original state |
void |
setEnabledToMenuItems(MenuOptions menuOptions)
Sets the "setEnabled" properties to the menu items of the main menu |
void |
setEnabledToMenuItems(String menuName,
boolean[] menuItems)
Sets the "setEnabled" properties to the menu items of the main menu, corresponding to the menu name |
void |
setWorkingDirectory(String workingDir)
Sets the actual working directory |
StatusBarable |
statusBar()
Returns the status bar of this GUI. |
Toolable |
tool()
Returns the tool of this GUI |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final String CLASSPATH
| Constructor Detail |
|---|
public Main(String name)
name - The IDE name| Method Detail |
|---|
public void changeTheLookAndFeel(int value)
value.
public JFrame frame()
frame in interface Mainablepublic JMLEditorable editor()
editor in interface Mainablepublic StatusBarable statusBar()
statusBar in interface Mainablepublic OutputPaneable outputPane()
Mainable
outputPane in interface Mainablepublic Toolable tool()
Mainable
tool in interface Mainablepublic FileBrowserable fileBrowser()
Mainable
fileBrowser in interface Mainablepublic String getHomeDirectory()
Mainable
getHomeDirectory in interface Mainablepublic String getWorkingDirectory()
Mainable
getWorkingDirectory in interface Mainablepublic void setWorkingDirectory(String workingDir)
Mainable
setWorkingDirectory in interface MainableworkingDir - Actual directorypublic String getJavaCompilerHomePath()
Mainable
getJavaCompilerHomePath in interface Mainablepublic String getOptionsToJavaC()
Mainable
getOptionsToJavaC in interface Mainablepublic String getCLASSPATH()
Mainable
getCLASSPATH in interface Mainablepublic void resetCLASSPATH()
public String getOptionsToJMLC()
Mainable
getOptionsToJMLC in interface Mainablepublic String getJavaDocPath()
Mainable
getJavaDocPath in interface Mainablepublic String getJMLDocPath()
Mainable
getJMLDocPath in interface Mainablepublic String getSyntaxHighlightPath()
Mainable
getSyntaxHighlightPath in interface Mainablepublic int getIndentationSize()
Mainable
getIndentationSize in interface Mainablepublic int getMaxFilesOpen()
Mainable
getMaxFilesOpen in interface Mainablepublic boolean getPrefToSearchAndReplace()
Mainable
getPrefToSearchAndReplace in interface Mainable
public void setEnabledToMenuItems(String menuName,
boolean[] menuItems)
Mainable
setEnabledToMenuItems in interface MainablemenuName - The menu namemenuItems - The boolean array containing the values to the menu items set enabled property.public void setEnabledToMenuItems(MenuOptions menuOptions)
Mainable
setEnabledToMenuItems in interface Mainablepublic void resetMenu()
Mainable
resetMenu in interface Mainable
public void putValueToUndoAction(String actionName,
Object undoPresentationName)
Mainable
putValueToUndoAction in interface Mainable
public void putValueToRedoAction(String actionName,
Object redoPresentationName)
Mainable
putValueToRedoAction in interface Mainablepublic static void main(String[] args)
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||