Java Doc for IDETool.java in  » J2EE » Sofia » com » salmonllc » ideTools » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Sofia » com.salmonllc.ideTools 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.ideTools.IDETool

IDETool
public class IDETool (Code)


Field Summary
final public static  ColorDEFAULT_FONT_COLOR
    
final public static  StringSERVER_TOMCAT40
    
final public static  StringSERVER_TOMCAT41
    
final public static  StringSERVER_TOMCAT50
    
final public static  StringSERVER_WEBLOGIC6
    


Method Summary
protected static  Stringbase64encode(String enc)
    
protected static  voidchangeProperties(boolean eclipse)
    
public static  voidcopyDirectory(File sourceDir, File outputDir)
    
public static  voidcopyFile(File inputFile, File outputFile)
    
public static  voidcreateDreamweaverProject(String resourcesDir, String projectName, String dreamweaverDir, String host, String projectLocation)
    
protected static  voidcreateProject()
    
public static  voiddisplayCutPasteDialog(String fileText)
    
protected static  HashtabledisplayEclipsePropertiesDialog()
     Displays a dialog for editing the system.properties file Eclipse IDE based properties.
protected static  voiddisplayError(Exception e)
    
protected static  voiddisplayError(String error)
    
protected static  voiddisplayError(String error, boolean exit)
    
protected static  voiddisplayInfo(String info)
    
protected static  voiddisplayListFormDialog()
    
protected static  voiddisplayModelDialog()
    
protected static  StringdisplayProjectDialog()
     Displays a dialog for creating a new project.
protected static  HashtabledisplayPropertiesDialog()
     Displays a dialog for editing the system.properties file IDE based properties.
protected static  booleandisplayQuestion(String question)
     Displays a OK, Cancel Question dialog with the string passed.
protected static  StringdisplaySaveDialog(String fileName, String text)
     Displays a file save dialog for a generated controller.
protected static  voiddisplaySiteMapDialog()
    
protected static  StringfixHtml(String line)
     Fixes HTML characters in controller code and converts then to regular ASCII.
public static  StringgenClassFileName(String packageName, String controllerName, String defaultPath, String defaultApp, boolean dontAppendApp)
    
protected static  StringgenCommand(String url, String command, String prefix)
     Invokes a command to generate either a controller or vars.
public static  FontgetDefaultFont()
    
public static  StringgetDefaultFwApp()
    
public static  ColorUIResourcegetDefaultScrollBarColor()
    
public static  StringgetDefaultSourcePath()
    
public static  StringgetDocumentRoot()
    
public static  booleangetDontAppendProject()
    
public static  StringgetProject()
    
public static  StringgetProjectProperty(String property)
    
protected static  StringgetURLFromFile(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  StringgetXmlFile()
    
public static  booleanisClassNameValid(String name, boolean incPackage)
    
public static  booleanisXMLNameValid(String name)
    
public static  voidmain(String args)
    
protected static  PropsparseArgs(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  StringreadFile(File inputFile)
    
public static  voidredeployWeblogicApplication(String webLogicRoot, String webApp)
    
public static  StringrunDreamweaver(String command, String parms)
    
public static  StringrunExe(String command, String parms)
    
public static  booleansaveClass(String defaultFileName, String fileText)
    
public static  voidsetDefaultScrollBarColor(ColorUIResource dEFAULT_SCROLL_BAR_COLOR)
    
public static  voidsetPropsPath()
    
public static  voidslurpProcessOutput(Process p)
    
public static  Stringtomcat4Command(String host, String managerApp, String webapp, String command, String userID, String pw)
    
public static  booleanuseDefaultOSLookAndFeel()
    

Field Detail
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)





Method Detail
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(Exception e)(Code)



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



getDefaultScrollBarColor
public static ColorUIResource getDefaultScrollBarColor()(Code)



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



getProject
public static String getProject()(Code)



getProjectProperty
public static String getProjectProperty(String property)(Code)



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.



getXmlFile
public static String getXmlFile()(Code)



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



main
public static void main(String args)(Code)



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



readFile
public static String readFile(File inputFile) throws IOException(Code)
Reads input file into a String



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



runExe
public static String runExe(String command, String parms)(Code)
Runs a program



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)



slurpProcessOutput
public static void slurpProcessOutput(Process p) throws IOException(Code)



tomcat4Command
public static String tomcat4Command(String host, String managerApp, String webapp, String command, String userID, String pw) throws Exception(Code)
Tomcat 4 command Controller



useDefaultOSLookAndFeel
public static boolean useDefaultOSLookAndFeel()(Code)
Returns true if the Operating System default look and feel is being used



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.