Java Doc for Macros.java in  » Swing-Library » jEdit » org » gjt » sp » jedit » 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 » Swing Library » jEdit » org.gjt.sp.jedit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.gjt.sp.jedit.Macros

All known Subclasses:   jars.MacOS.macos.script.AppleScriptHandler,
Macros
public class Macros (Code)
This class records and runs macros.

It also contains a few methods useful for displaying output messages or obtaining input from a macro:

Note that plugins should not use the above methods. Call the methods in the GUIUtilities class instead.
author:
   Slava Pestov
version:
   $Id: Macros.java 10714 2007-09-22 20:50:20Z kpouer $

Inner Class :public static class Macro extends EditAction
Inner Class :public static class Recorder implements EBComponent
Inner Class :abstract public static class Handler
Inner Class :static class BeanShellHandler extends Handler



Method Summary
public static  intconfirm(Component comp, String prompt, int buttons)
     Utility method that can be used to ask for confirmation in a macro.
public static  intconfirm(Component comp, String prompt, int buttons, int type)
     Utility method that can be used to ask for confirmation in a macro.
public static  voiderror(Component comp, String message)
     Utility method that can be used to display an error dialog in a macro.
public static  HandlergetHandler(String name)
     Returns the macro handler with the specified name, or null if there is no registered handler with that name.
public static  HandlergetHandlerForPathName(String pathName)
     Returns the macro handler suitable for running the specified file name, or null if there is no suitable handler.
public static  Handler[]getHandlers()
    
public static  MacrogetLastMacro()
    
public static  MacrogetMacro(String macro)
     Returns the macro with the specified name.
public static  ActionSetgetMacroActionSet()
     Returns an action set with all known macros in it.
public static  VectorgetMacroHierarchy()
     Returns a vector hierarchy with all known macros in it. Each element of this vector is either a macro name string, or another vector.
public static  Stringinput(Component comp, String prompt)
     Utility method that can be used to prompt for input in a macro.
public static  Stringinput(Component comp, String prompt, String defaultValue)
     Utility method that can be used to prompt for input in a macro.
public static  voidloadMacros()
    
public static  voidmessage(Component comp, String message)
     Utility method that can be used to display a message dialog in a macro.
public static  voidrecordMacro(View view)
     Starts recording a macro.
public static  voidrecordTemporaryMacro(View view)
     Starts recording a temporary macro.
public static  voidregisterHandler(Handler handler)
    
public static  voidrunScript(View view, String path, boolean ignoreUnknown)
     Runs the specified script.
public static  voidrunTemporaryMacro(View view)
     Runs the temporary macro.
public static  voidsetLastMacro(Macro macro)
    
public static  voidshowRunScriptDialog(View view)
    
public static  voidstopRecording(View view)
     Stops a recording currently in progress.



Method Detail
confirm
public static int confirm(Component comp, String prompt, int buttons)(Code)
Utility method that can be used to ask for confirmation in a macro.
Parameters:
  comp - The component to show the dialog on behalf of, thiswill usually be a view instance
Parameters:
  prompt - The prompt string
Parameters:
  buttons - The buttons to display - for example,JOptionPane.YES_NO_CANCEL_OPTION
since:
   jEdit 4.0pre2



confirm
public static int confirm(Component comp, String prompt, int buttons, int type)(Code)
Utility method that can be used to ask for confirmation in a macro.
Parameters:
  comp - The component to show the dialog on behalf of, thiswill usually be a view instance
Parameters:
  prompt - The prompt string
Parameters:
  buttons - The buttons to display - for example,JOptionPane.YES_NO_CANCEL_OPTION
Parameters:
  type - The dialog type - for example,JOptionPane.WARNING_MESSAGE



error
public static void error(Component comp, String message)(Code)
Utility method that can be used to display an error dialog in a macro.
Parameters:
  comp - The component to show the dialog on behalf of, thiswill usually be a view instance
Parameters:
  message - The message
since:
   jEdit 2.7pre2



getHandler
public static Handler getHandler(String name)(Code)
Returns the macro handler with the specified name, or null if there is no registered handler with that name.
since:
   jEdit 4.0pre6



getHandlerForPathName
public static Handler getHandlerForPathName(String pathName)(Code)
Returns the macro handler suitable for running the specified file name, or null if there is no suitable handler.
since:
   jEdit 4.1pre3



getHandlers
public static Handler[] getHandlers()(Code)
Returns an array containing the list of registered macro handlers
since:
   jEdit 4.0pre6



getLastMacro
public static Macro getLastMacro()(Code)

since:
   jEdit 4.3pre1



getMacro
public static Macro getMacro(String macro)(Code)
Returns the macro with the specified name.
Parameters:
  macro - The macro's name
since:
   jEdit 2.6pre1



getMacroActionSet
public static ActionSet getMacroActionSet()(Code)
Returns an action set with all known macros in it.
since:
   jEdit 4.0pre1



getMacroHierarchy
public static Vector getMacroHierarchy()(Code)
Returns a vector hierarchy with all known macros in it. Each element of this vector is either a macro name string, or another vector. If it is a vector, the first element is a string label, the rest are again, either macro name strings or vectors.
since:
   jEdit 2.6pre1



input
public static String input(Component comp, String prompt)(Code)
Utility method that can be used to prompt for input in a macro.
Parameters:
  comp - The component to show the dialog on behalf of, thiswill usually be a view instance
Parameters:
  prompt - The prompt string
since:
   jEdit 2.7pre2



input
public static String input(Component comp, String prompt, String defaultValue)(Code)
Utility method that can be used to prompt for input in a macro.
Parameters:
  comp - The component to show the dialog on behalf of, thiswill usually be a view instance
Parameters:
  prompt - The prompt string
since:
   jEdit 3.1final



loadMacros
public static void loadMacros()(Code)
Rebuilds the macros list, and sends a MacrosChanged message (views update their Macros menu upon receiving it)
since:
   jEdit 2.2pre4



message
public static void message(Component comp, String message)(Code)
Utility method that can be used to display a message dialog in a macro.
Parameters:
  comp - The component to show the dialog on behalf of, thiswill usually be a view instance
Parameters:
  message - The message
since:
   jEdit 2.7pre2



recordMacro
public static void recordMacro(View view)(Code)
Starts recording a macro.
Parameters:
  view - The view
since:
   jEdit 2.7pre2



recordTemporaryMacro
public static void recordTemporaryMacro(View view)(Code)
Starts recording a temporary macro.
Parameters:
  view - The view
since:
   jEdit 2.7pre2



registerHandler
public static void registerHandler(Handler handler)(Code)
Adds a macro handler to the handlers list
since:
   jEdit 4.0pre6



runScript
public static void runScript(View view, String path, boolean ignoreUnknown)(Code)
Runs the specified script. Unlike the BeanShell.runScript(ViewStringReaderboolean) method, this method can run scripts supported by any registered macro handler.
Parameters:
  view - The view
Parameters:
  path - The VFS path of the script
Parameters:
  ignoreUnknown - If true, then unknown file types will beignored; otherwise, a warning message will be printed and they willbe evaluated as BeanShell scripts.
since:
   jEdit 4.1pre2



runTemporaryMacro
public static void runTemporaryMacro(View view)(Code)
Runs the temporary macro.
Parameters:
  view - The view
since:
   jEdit 2.7pre2



setLastMacro
public static void setLastMacro(Macro macro)(Code)

since:
   jEdit 4.3pre1



showRunScriptDialog
public static void showRunScriptDialog(View view)(Code)
Prompts for one or more files to run as macros
Parameters:
  view - The view
since:
   jEdit 4.0pre7



stopRecording
public static void stopRecording(View view)(Code)
Stops a recording currently in progress.
Parameters:
  view - The view
since:
   jEdit 2.7pre2



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.