| java.lang.Object com.salmonllc.ideTools.IDETool
IDETool | public class IDETool (Code) | | |
Method Summary | |
protected static String | base64encode(String enc) | protected static void | changeProperties(boolean eclipse) | public static void | copyDirectory(File sourceDir, File outputDir) | public static void | copyFile(File inputFile, File outputFile) | public static void | createDreamweaverProject(String resourcesDir, String projectName, String dreamweaverDir, String host, String projectLocation) | protected static void | createProject() | public static void | displayCutPasteDialog(String fileText) | protected static Hashtable | displayEclipsePropertiesDialog() Displays a dialog for editing the system.properties file Eclipse IDE based properties. | protected static void | displayError(Exception e) | protected static void | displayError(String error) | protected static void | displayError(String error, boolean exit) | protected static void | displayInfo(String info) | protected static void | displayListFormDialog() | protected static void | displayModelDialog() | protected static String | displayProjectDialog() Displays a dialog for creating a new project. | protected static Hashtable | displayPropertiesDialog() Displays a dialog for editing the system.properties file IDE based properties. | protected static boolean | displayQuestion(String question) Displays a OK, Cancel Question dialog with the string passed. | protected static String | displaySaveDialog(String fileName, String text) Displays a file save dialog for a generated controller. | protected static void | displaySiteMapDialog() | protected static String | fixHtml(String line) Fixes HTML characters in controller code and converts then to regular ASCII. | public static String | genClassFileName(String packageName, String controllerName, String defaultPath, String defaultApp, boolean dontAppendApp) | protected static String | genCommand(String url, String command, String prefix) Invokes a command to generate either a controller or vars. | public static Font | getDefaultFont() | public static String | getDefaultFwApp() | public static ColorUIResource | getDefaultScrollBarColor() | public static String | getDefaultSourcePath() | public static String | getDocumentRoot() | public static boolean | getDontAppendProject() | public static String | getProject() | public static String | getProjectProperty(String property) | protected static String | getURLFromFile(String host, String webPage, String defaultWebApp, String defaultFWApp, String command) Figures out what the url would be for a given JSP on the file system. | public static String | getXmlFile() | public static boolean | isClassNameValid(String name, boolean incPackage) | public static boolean | isXMLNameValid(String name) | public static void | main(String args) | protected static Props | parseArgs(String args) Parses the arguments passed to the main method.
Valid ARGS are
-RUNDREAMWEAVER - Run Dreamweaver and opens a file if specified
-REDEPLOY - Redeploys the default web application
-RUNBROWSER - Runs a browser. | public static String | readFile(File inputFile) | public static void | redeployWeblogicApplication(String webLogicRoot, String webApp) | public static String | runDreamweaver(String command, String parms) | public static String | runExe(String command, String parms) | public static boolean | saveClass(String defaultFileName, String fileText) | public static void | setDefaultScrollBarColor(ColorUIResource dEFAULT_SCROLL_BAR_COLOR) | public static void | setPropsPath() | public static void | slurpProcessOutput(Process p) | public static String | tomcat4Command(String host, String managerApp, String webapp, String command, String userID, String pw) | public static boolean | useDefaultOSLookAndFeel() |
DEFAULT_FONT_COLOR | final public static Color DEFAULT_FONT_COLOR(Code) | | |
SERVER_TOMCAT40 | final public static String SERVER_TOMCAT40(Code) | | |
SERVER_TOMCAT41 | final public static String SERVER_TOMCAT41(Code) | | |
SERVER_TOMCAT50 | final public static String SERVER_TOMCAT50(Code) | | |
SERVER_WEBLOGIC6 | final public static String SERVER_WEBLOGIC6(Code) | | |
base64encode | protected static String base64encode(String enc)(Code) | | For server invocation, converts a string to base64encoding
|
changeProperties | protected static void changeProperties(boolean eclipse)(Code) | | Pops up a change dialog and saves changes to the System.properties file
|
copyDirectory | public static void copyDirectory(File sourceDir, File outputDir) throws IOException(Code) | | Copies all the files in sourceDir and subdirectories to outputDir
|
copyFile | public static void copyFile(File inputFile, File outputFile) throws IOException(Code) | | Copies input file to output file
|
createDreamweaverProject | public static void createDreamweaverProject(String resourcesDir, String projectName, String dreamweaverDir, String host, String projectLocation) throws Exception(Code) | | Builds all the registry stuff to create a dreamweaver site
|
createProject | protected static void createProject()(Code) | | Pops up a create project dialog and saves changes to the System.properties file
|
displayCutPasteDialog | public static void displayCutPasteDialog(String fileText)(Code) | | Displays a cut paste dialog box with the contents of the text
|
displayEclipsePropertiesDialog | protected static Hashtable displayEclipsePropertiesDialog()(Code) | | Displays a dialog for editing the system.properties file Eclipse IDE based properties. It returns a Hashtable of changes or null if nothing was changed
|
displayError | protected static void displayError(String error)(Code) | | Displays an Error Message dialog and terminates the program
|
displayError | protected static void displayError(String error, boolean exit)(Code) | | Displays an Error Message dialog and allows a parameter to decided whether to terminate the program immediately after
|
displayInfo | protected static void displayInfo(String info)(Code) | | Displays an Error Message dialog and allows a parameter to decided whether to terminate the program immediately after
|
displayListFormDialog | protected static void displayListFormDialog()(Code) | | Displays a dialog for creating a ListForm
|
displayModelDialog | protected static void displayModelDialog()(Code) | | Displays a dialog for creating a model and returns the text for the model
|
displayProjectDialog | protected static String displayProjectDialog()(Code) | | Displays a dialog for creating a new project. It returns a String of the new Default Source Directory
|
displayPropertiesDialog | protected static Hashtable displayPropertiesDialog()(Code) | | Displays a dialog for editing the system.properties file IDE based properties. It returns a Hashtable of changes or null if nothing was changed
|
displayQuestion | protected static boolean displayQuestion(String question)(Code) | | Displays a OK, Cancel Question dialog with the string passed. Returns true if the user clicks OK and false if CANCEL
|
displaySaveDialog | protected static String displaySaveDialog(String fileName, String text)(Code) | | Displays a file save dialog for a generated controller. Pass the default filename and the text for the controller
|
displaySiteMapDialog | protected static void displaySiteMapDialog()(Code) | | Displays a SiteMap dialog
|
fixHtml | protected static String fixHtml(String line)(Code) | | Fixes HTML characters in controller code and converts then to regular ASCII.
It will convert " and
|
genClassFileName | public static String genClassFileName(String packageName, String controllerName, String defaultPath, String defaultApp, boolean dontAppendApp)(Code) | | generates a file name for a controller given the package and the controller class name
|
genCommand | protected static String genCommand(String url, String command, String prefix) throws Exception(Code) | | Invokes a command to generate either a controller or vars. Pass the url of the page, the command (vars or genController)
and the prefix that indicates that the generated code is about to start. The method
returns the generated code.
|
getDefaultFont | public static Font getDefaultFont()(Code) | | |
getDefaultFwApp | public static String getDefaultFwApp()(Code) | | the default framework application |
getDefaultSourcePath | public static String getDefaultSourcePath()(Code) | | the default source path |
getDocumentRoot | public static String getDocumentRoot()(Code) | | the document root for the web application |
getDontAppendProject | public static boolean getDontAppendProject()(Code) | | the dont append project flag |
getURLFromFile | protected static String getURLFromFile(String host, String webPage, String defaultWebApp, String defaultFWApp, String command)(Code) | | Figures out what the url would be for a given JSP on the file system.
|
isClassNameValid | public static boolean isClassNameValid(String name, boolean incPackage)(Code) | | Returns true if a class name is valid
|
isXMLNameValid | public static boolean isXMLNameValid(String name)(Code) | | Returns true if a class name is valid
|
parseArgs | protected static Props parseArgs(String args) throws Exception(Code) | | Parses the arguments passed to the main method.
Valid ARGS are
-RUNDREAMWEAVER - Run Dreamweaver and opens a file if specified
-REDEPLOY - Redeploys the default web application
-RUNBROWSER - Runs a browser. This should be followed by a browser name from the System.properties file (IE,Netscape4,etc). Used in conjunction with the -URL arg
-GENCONTROLLER - Generates a controller for a JSP, Used in conjunction with the -URL arg
-GENVARS - Generates the instance variables for a JSP, Used in conjunction with the -URL arg
-URL - Specify the URL or file for a browser to run or code to be generated from
-SETPROPS - Edit the property file settings for the IDE
-GENMODEL - Open a dialog that generates a datastore model
|
redeployWeblogicApplication | public static void redeployWeblogicApplication(String webLogicRoot, String webApp) throws Exception(Code) | | Redeploy a weblogic application
|
runDreamweaver | public static String runDreamweaver(String command, String parms)(Code) | | Runs Dreamweaver, but first sets the path so everything works OK
|
saveClass | public static boolean saveClass(String defaultFileName, String fileText)(Code) | | Displays a dialog and saves a generated controller
|
setDefaultScrollBarColor | public static void setDefaultScrollBarColor(ColorUIResource dEFAULT_SCROLL_BAR_COLOR)(Code) | | |
setPropsPath | public static void setPropsPath()(Code) | | |
useDefaultOSLookAndFeel | public static boolean useDefaultOSLookAndFeel()(Code) | | Returns true if the Operating System default look and feel is being used
|
|
|