Java Doc for jEdit.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.jEdit

jEdit
public class jEdit (Code)
The main class of the jEdit text editor.
author:
   Slava Pestov
version:
   $Id: jEdit.java 11204 2007-12-07 19:46:49Z k_satoda $

Inner Class :static class FirewallAuthenticator extends Authenticator
Inner Class :static class MyFocusManager extends DefaultKeyboardFocusManager



Method Summary
public static  void_closeBuffer(View view, Buffer buffer)
     Closes the buffer, even if it has unsaved changes.
public static  Buffer_getBuffer(String path)
     Returns the buffer with the specified path name.
public static  voidaddActionSet(ActionSet actionSet)
     Adds a new action set to jEdit's list of ActionSets (viewable from the shortcuts option pane).
public static  voidaddPluginJAR(String path)
     Loads the plugin JAR with the specified path.
static  voidaddPluginProps(Properties map)
    
public static  voidbackupSettingsFile(File file)
     Backs up the specified file in the settings directory.
public static  voidcheckBufferStatus(View view)
     Checks each buffer's status on disk and shows the dialog box informing the user that buffers changed on disk, if necessary.
public static  voidcheckBufferStatus(View view, boolean currentBuffer)
     Checks buffer status on disk and shows the dialog box informing the user that buffers changed on disk, if necessary.
public static  booleancloseAllBuffers(View view)
     Closes all open buffers.
public static  booleancloseAllBuffers(View view, boolean isExiting)
     Closes all open buffers.
public static  booleancloseBuffer(View view, Buffer buffer)
     Closes a buffer.
public static  voidcloseView(View view)
     Closes a view.
public static  voidcommitTemporary(Buffer buffer)
     Adds a temporary buffer to the buffer list.
public static  voidexit(View view, boolean reallyExit)
     Exits cleanly from jEdit, prompting the user if any unsaved files should be saved first.
public static  EditActiongetAction(String name)
     Returns the specified action.
public static  ActionContextgetActionContext()
     Returns the action context used to store editor actions.
public static  String[]getActionNames()
     Returns all registered action names.
public static  ActionSetgetActionSetForAction(String action)
     Returns the action set that contains the specified action.
public static  ActionSetgetActionSetForAction(EditAction action)
    
public static  ActionSet[]getActionSets()
     Returns all registered action sets.
public static  EditAction[]getActions()
    
public static  ViewgetActiveView()
     Returns the currently focused view.
public static  ViewgetActiveViewInternal()
     Returns the internal active view, which might be null.
final public static  booleangetBooleanProperty(String name)
     Returns the value of a boolean property.
final public static  booleangetBooleanProperty(String name, boolean def)
     Returns the value of a boolean property.
public static  BuffergetBuffer(String path)
     Returns the buffer with the specified path name.
public static  intgetBufferCount()
     Returns the number of open buffers.
public static  Buffer[]getBuffers()
     Returns an array of open buffers.
public static  StringgetBuild()
     Returns the internal version.
public static  ActionSetgetBuiltInActionSet()
     Returns the set of commands built into jEdit.
public static  ColorgetColorProperty(String name)
     Returns the value of a color property.
public static  ColorgetColorProperty(String name, Color def)
     Returns the value of a color property.
public static  doublegetDoubleProperty(String name, double def)
    
public static  EditServergetEditServer()
     Returns the edit server instance.
public static  BuffergetFirstBuffer()
     Returns the first buffer.
public static  ViewgetFirstView()
     Returns the first view.
final public static  FontgetFontProperty(String name)
     Returns the value of a font property.
final public static  FontgetFontProperty(String name, Font def)
     Returns the value of a font property.
public static  InputHandlergetInputHandler()
    
final public static  intgetIntegerProperty(String name)
     Returns the value of an integer property.
final public static  intgetIntegerProperty(String name, int def)
     Returns the value of an integer property.
public static  StringgetJARCacheDirectory()
     Returns the directory where plugin cache files are stored.
public static  StringgetJEditHome()
     Returns the jEdit install directory.
public static  BuffergetLastBuffer()
     Returns the last buffer.
public static  ViewgetLastView()
     Returns the last view.
public static  ModegetMode(String name)
     Returns the edit mode with the specified name.
public static  Mode[]getModes()
     Returns an array of installed edit modes.
public static  String[]getNotLoadedPluginJARs()
     Returns a list of plugin JARs pathnames that are not currently loaded by examining the user and system plugin directories.
public static  EditPlugingetPlugin(String name)
     Returns the plugin with the specified class name.
public static  EditPlugingetPlugin(String name, boolean loadIfNecessary)
     Returns the plugin with the specified class name.
public static  PluginJARgetPluginJAR(String path)
     Returns the JAR with the specified path name.
public static  PluginJAR[]getPluginJARs()
     Returns an array of installed plugins.
public static  EditPlugin[]getPlugins()
     Returns an array of installed plugins.
final public static  PropertiesgetProperties()
     Returns the properties object which contains all known jEdit properties.
final public static  StringgetProperty(String name)
     Fetches a property, returning null if it's not defined.
final public static  StringgetProperty(String name, String def)
     Fetches a property, returning the default value if it's not defined.
final public static  StringgetProperty(String name, Object[] args)
     Returns the property with the specified name.

The elements of the args array are substituted into the value of the property in place of strings of the form {n}, where n is an index in the array.

You can find out more about this feature by reading the documentation for the format method of the java.text.MessageFormat class.

public static  StringgetSettingsDirectory()
     Returns the path of the directory where user-specific settings are stored.
public static  StringgetVersion()
     Returns the jEdit version as a human-readable string.
public static  intgetViewCount()
     Returns the number of open views.
public static  View[]getViews()
     Returns an array of all open views.
public static  booleanisBackgroundModeEnabled()
     Returns true if jEdit was started with the -background command-line switch.
public static  booleanisMainThread()
     Returns true if the currently running thread is the main thread.
static  voidloadMode(Mode mode)
     Loads an XML-defined edit mode from the specified reader.
public static  voidmain(String[] args)
     The main method of the jEdit application.
public static  BuffernewFile(View view)
     Creates a new `untitled' file.
public static  BuffernewFile(View view, String dir)
     Creates a new `untitled' file.
public static  ViewnewView(View view)
     Creates a new view.
public static  ViewnewView(View view, Buffer buffer)
     Creates a new view of a buffer.
public static  ViewnewView(View view, Buffer buffer, boolean plainView)
     Creates a new view of a buffer.
public static  ViewnewView(View view, Buffer buffer, View.ViewConfig config)
     Creates a new view.
public static  BufferopenFile(View view, String path)
     Opens a file.
public static  BufferopenFile(View view, String parent, String path, boolean readOnly, boolean newFile)
    
public static  BufferopenFile(View view, String parent, String path, boolean readOnly, boolean newFile, Hashtable props)
    
public static  BufferopenFile(View view, String parent, String path, boolean newFile, Hashtable props)
     Opens a file.
public static  BufferopenFiles(View view, String parent, String[] args)
     Opens the file names specified in the argument array.
public static  BufferopenTemporary(View view, String parent, String path, boolean newFile)
     Opens a temporary buffer.
public static  BufferopenTemporary(View view, String parent, String path, boolean newFile, Hashtable props)
     Opens a temporary buffer.
static  voidpluginError(String path, String messageProp, Object[] args)
    
public static  voidpropertiesChanged()
     Reloads various settings from the properties.
public static  voidreloadAllBuffers(View view, boolean confirm)
     Reloads all open buffers.
public static  voidreloadModes()
     Reloads all edit modes.
public static  voidremoveActionSet(ActionSet actionSet)
     Removes an action set from jEdit's list.
public static  voidremovePluginJAR(PluginJAR jar, boolean exit)
     Unloads the given plugin JAR with the specified path.
static  voidremovePluginProps(Properties map)
    
final public static  voidresetProperty(String name)
     Resets a property to its default value.
public static  voidsaveAllBuffers(View view)
     Saves all open buffers.
public static  voidsaveAllBuffers(View view, boolean confirm)
     Saves all open buffers.
public static  voidsaveSettings()
     Saves all user preferences to disk.
static  voidsetActiveView(View view)
    
final public static  voidsetBooleanProperty(String name, boolean value)
     Sets a boolean property.
public static  voidsetColorProperty(String name, Color value)
     Sets the value of a color property.
final public static  voidsetDoubleProperty(String name, double value)
    
final public static  voidsetFontProperty(String name, Font value)
     Sets the value of a font property.
final public static  voidsetIntegerProperty(String name, int value)
     Sets the value of an integer property.
final public static  voidsetProperty(String name, String value)
     Sets a property to a new value.
final public static  voidsetTemporaryProperty(String name, String value)
     Sets a property to a new value.
public static  voidshowMemoryDialog(View view)
     Performs garbage collection and displays a dialog box showing memory status.
final public static  voidunsetProperty(String name)
     Unsets (clears) a property.
static  voidupdatePosition(String oldPath, Buffer buffer)
     If buffer sorting is enabled, this repositions the buffer.



Method Detail
_closeBuffer
public static void _closeBuffer(View view, Buffer buffer)(Code)
Closes the buffer, even if it has unsaved changes.
Parameters:
  view - The view, may be null
Parameters:
  buffer - The buffer
exception:
  NullPointerException - if the buffer is null
since:
   jEdit 2.2pre1



_getBuffer
public static Buffer _getBuffer(String path)(Code)
Returns the buffer with the specified path name. The path name must be an absolute, canonical, path.
Parameters:
  path - The path name
See Also:   MiscUtilities.constructPath(StringString)
See Also:   MiscUtilities.resolveSymlinks(String)
See Also:   jEdit.getBuffer(String)
since:
   jEdit 4.2pre7



addActionSet
public static void addActionSet(ActionSet actionSet)(Code)
Adds a new action set to jEdit's list of ActionSets (viewable from the shortcuts option pane). By default, each plugin has one ActionSet, but some plugins may create dynamic action sets, such as ProjectViewer and Console. These plugins must call removeActionSet() when the plugin is unloaded.
since:
   jEdit 4.0pre1
See Also:   jEdit.removeActionSet(ActionSet)



addPluginJAR
public static void addPluginJAR(String path)(Code)
Loads the plugin JAR with the specified path. Some notes about this method:
  • Calling this at a time other than jEdit startup can have unpredictable results if the plugin has not been updated for the jEdit 4.2 plugin API.
  • You must make sure yourself the plugin is not already loaded.
  • After loading, you just make sure all the plugin's dependencies are satisified before activating the plugin, using the PluginJAR.checkDependencies method.

Parameters:
  path - The JAR file path
since:
   jEdit 4.2pre1



addPluginProps
static void addPluginProps(Properties map)(Code)



backupSettingsFile
public static void backupSettingsFile(File file)(Code)
Backs up the specified file in the settings directory. You should call this on any settings files your plugin writes.
Parameters:
  file - The file
since:
   jEdit 4.0pre1



checkBufferStatus
public static void checkBufferStatus(View view)(Code)
Checks each buffer's status on disk and shows the dialog box informing the user that buffers changed on disk, if necessary.
Parameters:
  view - The view
since:
   jEdit 4.2pre1



checkBufferStatus
public static void checkBufferStatus(View view, boolean currentBuffer)(Code)
Checks buffer status on disk and shows the dialog box informing the user that buffers changed on disk, if necessary.
Parameters:
  view - The view
Parameters:
  currentBuffer - indicates whether to check only the current buffer
since:
   jEdit 4.2pre1



closeAllBuffers
public static boolean closeAllBuffers(View view)(Code)
Closes all open buffers.
Parameters:
  view - The view



closeAllBuffers
public static boolean closeAllBuffers(View view, boolean isExiting)(Code)
Closes all open buffers.
Parameters:
  view - The view
Parameters:
  isExiting - This must be false unless this method isbeing called by the exit() method



closeBuffer
public static boolean closeBuffer(View view, Buffer buffer)(Code)
Closes a buffer. If there are unsaved changes, the user is prompted if they should be saved first.
Parameters:
  view - The view
Parameters:
  buffer - The buffer True if the buffer was really closed, false otherwise



closeView
public static void closeView(View view)(Code)
Closes a view. jEdit will exit if this was the last open view.



commitTemporary
public static void commitTemporary(Buffer buffer)(Code)
Adds a temporary buffer to the buffer list. This must be done before allowing the user to interact with the buffer in any way.
Parameters:
  buffer - The buffer



exit
public static void exit(View view, boolean reallyExit)(Code)
Exits cleanly from jEdit, prompting the user if any unsaved files should be saved first.
Parameters:
  view - The view from which this exit was called
Parameters:
  reallyExit - If background mode is enabled and this parameteris true, then jEdit will close all open views instead of exitingentirely.



getAction
public static EditAction getAction(String name)(Code)
Returns the specified action.
Parameters:
  name - The action name



getActionContext
public static ActionContext getActionContext()(Code)
Returns the action context used to store editor actions.
since:
   jEdit 4.2pre1



getActionNames
public static String[] getActionNames()(Code)
Returns all registered action names.



getActionSetForAction
public static ActionSet getActionSetForAction(String action)(Code)
Returns the action set that contains the specified action.
Parameters:
  action - The action
since:
   jEdit 4.2pre1



getActionSetForAction
public static ActionSet getActionSetForAction(EditAction action)(Code)



getActionSets
public static ActionSet[] getActionSets()(Code)
Returns all registered action sets.
since:
   jEdit 4.0pre1



getActions
public static EditAction[] getActions()(Code)



getActiveView
public static View getActiveView()(Code)
Returns the currently focused view.
since:
   jEdit 4.1pre1



getActiveViewInternal
public static View getActiveViewInternal()(Code)
Returns the internal active view, which might be null.
since:
   4.3pre10



getBooleanProperty
final public static boolean getBooleanProperty(String name)(Code)
Returns the value of a boolean property.
Parameters:
  name - The property



getBooleanProperty
final public static boolean getBooleanProperty(String name, boolean def)(Code)
Returns the value of a boolean property.
Parameters:
  name - The property
Parameters:
  def - The default value



getBuffer
public static Buffer getBuffer(String path)(Code)
Returns the buffer with the specified path name. The path name must be an absolute path. This method automatically resolves symbolic links. If performance is critical, cache the canonical path and call jEdit._getBuffer(String) instead.
Parameters:
  path - The path name
See Also:   MiscUtilities.constructPath(StringString)
See Also:   MiscUtilities.resolveSymlinks(String)



getBufferCount
public static int getBufferCount()(Code)
Returns the number of open buffers.



getBuffers
public static Buffer[] getBuffers()(Code)
Returns an array of open buffers.



getBuild
public static String getBuild()(Code)
Returns the internal version. MiscUtilities.compareStrings() can be used to compare different internal versions.



getBuiltInActionSet
public static ActionSet getBuiltInActionSet()(Code)
Returns the set of commands built into jEdit.
since:
   jEdit 4.2pre1



getColorProperty
public static Color getColorProperty(String name)(Code)
Returns the value of a color property.
Parameters:
  name - The property name
since:
   jEdit 4.0pre1



getColorProperty
public static Color getColorProperty(String name, Color def)(Code)
Returns the value of a color property.
Parameters:
  name - The property name
Parameters:
  def - The default value
since:
   jEdit 4.0pre1



getDoubleProperty
public static double getDoubleProperty(String name, double def)(Code)



getEditServer
public static EditServer getEditServer()(Code)
Returns the edit server instance. You can use this to find out the port number jEdit is listening on.
since:
   jEdit 4.2pre10



getFirstBuffer
public static Buffer getFirstBuffer()(Code)
Returns the first buffer.



getFirstView
public static View getFirstView()(Code)
Returns the first view.



getFontProperty
final public static Font getFontProperty(String name)(Code)
Returns the value of a font property. The family is stored in the name property, the font size is stored in the namesize property, and the font style is stored in namestyle. For example, if name is view.gutter.font, the properties will be named view.gutter.font, view.gutter.fontsize, and view.gutter.fontstyle.
Parameters:
  name - The property
since:
   jEdit 4.0pre1



getFontProperty
final public static Font getFontProperty(String name, Font def)(Code)
Returns the value of a font property. The family is stored in the name property, the font size is stored in the namesize property, and the font style is stored in namestyle. For example, if name is view.gutter.font, the properties will be named view.gutter.font, view.gutter.fontsize, and view.gutter.fontstyle.
Parameters:
  name - The property
Parameters:
  def - The default value
since:
   jEdit 4.0pre1



getInputHandler
public static InputHandler getInputHandler()(Code)
Returns the current input handler (key binding to action mapping)
See Also:   org.gjt.sp.jedit.gui.InputHandler



getIntegerProperty
final public static int getIntegerProperty(String name)(Code)
Returns the value of an integer property.
Parameters:
  name - The property



getIntegerProperty
final public static int getIntegerProperty(String name, int def)(Code)
Returns the value of an integer property.
Parameters:
  name - The property
Parameters:
  def - The default value
since:
   jEdit 4.0pre1



getJARCacheDirectory
public static String getJARCacheDirectory()(Code)
Returns the directory where plugin cache files are stored.
since:
   jEdit 4.2pre1



getJEditHome
public static String getJEditHome()(Code)
Returns the jEdit install directory.



getLastBuffer
public static Buffer getLastBuffer()(Code)
Returns the last buffer.



getLastView
public static View getLastView()(Code)
Returns the last view.



getMode
public static Mode getMode(String name)(Code)
Returns the edit mode with the specified name.
Parameters:
  name - The edit mode



getModes
public static Mode[] getModes()(Code)
Returns an array of installed edit modes.



getNotLoadedPluginJARs
public static String[] getNotLoadedPluginJARs()(Code)
Returns a list of plugin JARs pathnames that are not currently loaded by examining the user and system plugin directories.
since:
   jEdit 3.2pre1



getPlugin
public static EditPlugin getPlugin(String name)(Code)
Returns the plugin with the specified class name. Only works for plugins that were loaded.



getPlugin
public static EditPlugin getPlugin(String name, boolean loadIfNecessary)(Code)
Returns the plugin with the specified class name. If * loadIfNecessary is true, the plugin will be searched for, loaded, and activated in case it has not yet been loaded.
Parameters:
  name - the classname of the main Plugin class.
Parameters:
  loadIfNecessary - - loads plugin + dependencies if it is not loaded yet.
since:
   jEdit 4.2pre4



getPluginJAR
public static PluginJAR getPluginJAR(String path)(Code)
Returns the JAR with the specified path name.
Parameters:
  path - The path name
since:
   jEdit 4.2pre1



getPluginJARs
public static PluginJAR[] getPluginJARs()(Code)
Returns an array of installed plugins.
since:
   jEdit 4.2pre1



getPlugins
public static EditPlugin[] getPlugins()(Code)
Returns an array of installed plugins.



getProperties
final public static Properties getProperties()(Code)
Returns the properties object which contains all known jEdit properties. Note that as of jEdit 4.2pre10, this returns a new collection, not the existing properties instance.
since:
   jEdit 3.1pre4



getProperty
final public static String getProperty(String name)(Code)
Fetches a property, returning null if it's not defined.
Parameters:
  name - The property



getProperty
final public static String getProperty(String name, String def)(Code)
Fetches a property, returning the default value if it's not defined.
Parameters:
  name - The property
Parameters:
  def - The default value



getProperty
final public static String getProperty(String name, Object[] args)(Code)
Returns the property with the specified name.

The elements of the args array are substituted into the value of the property in place of strings of the form {n}, where n is an index in the array.

You can find out more about this feature by reading the documentation for the format method of the java.text.MessageFormat class.
Parameters:
  name - The property
Parameters:
  args - The positional parameters




getSettingsDirectory
public static String getSettingsDirectory()(Code)
Returns the path of the directory where user-specific settings are stored. This will be null if jEdit was started with the -nosettings command-line switch; do not blindly use this method without checking for a null return value first.



getVersion
public static String getVersion()(Code)
Returns the jEdit version as a human-readable string.



getViewCount
public static int getViewCount()(Code)
Returns the number of open views.



getViews
public static View[] getViews()(Code)
Returns an array of all open views.



isBackgroundModeEnabled
public static boolean isBackgroundModeEnabled()(Code)
Returns true if jEdit was started with the -background command-line switch.
since:
   jEdit 4.0pre4



isMainThread
public static boolean isMainThread()(Code)
Returns true if the currently running thread is the main thread.
since:
   jEdit 4.2pre1



loadMode
static void loadMode(Mode mode)(Code)
Loads an XML-defined edit mode from the specified reader.
Parameters:
  mode - The edit mode



main
public static void main(String[] args)(Code)
The main method of the jEdit application. This should never be invoked directly.
Parameters:
  args - The command line arguments



newFile
public static Buffer newFile(View view)(Code)
Creates a new `untitled' file.
Parameters:
  view - The view to create the file in



newFile
public static Buffer newFile(View view, String dir)(Code)
Creates a new `untitled' file.
Parameters:
  view - The view to create the file in
Parameters:
  dir - The directory to create the file in
since:
   jEdit 3.1pre2



newView
public static View newView(View view)(Code)
Creates a new view.
Parameters:
  view - An existing view
since:
   jEdit 3.2pre2



newView
public static View newView(View view, Buffer buffer)(Code)
Creates a new view of a buffer.
Parameters:
  view - An existing view
Parameters:
  buffer - The buffer



newView
public static View newView(View view, Buffer buffer, boolean plainView)(Code)
Creates a new view of a buffer.
Parameters:
  view - An existing view
Parameters:
  buffer - The buffer
Parameters:
  plainView - If true, the view will not have dockable windows ortool bars.
since:
   4.1pre2



newView
public static View newView(View view, Buffer buffer, View.ViewConfig config)(Code)
Creates a new view.
Parameters:
  view - An existing view
Parameters:
  buffer - A buffer to display, or null
Parameters:
  config - Encapsulates the view geometry, split configurationand if the view is a plain view
since:
   jEdit 4.2pre1



openFile
public static Buffer openFile(View view, String path)(Code)
Opens a file. Note that as of jEdit 2.5pre1, this may return null if the buffer could not be opened.
Parameters:
  view - The view to open the file in
Parameters:
  path - The file path
since:
   jEdit 2.4pre1



openFile
public static Buffer openFile(View view, String parent, String path, boolean readOnly, boolean newFile)(Code)



openFile
public static Buffer openFile(View view, String parent, String path, boolean readOnly, boolean newFile, Hashtable props)(Code)



openFile
public static Buffer openFile(View view, String parent, String path, boolean newFile, Hashtable props)(Code)
Opens a file. This may return null if the buffer could not be opened for some reason.
Parameters:
  view - The view to open the file in
Parameters:
  parent - The parent directory of the file
Parameters:
  path - The path name of the file
Parameters:
  newFile - True if the file should not be loaded from diskbe prompted if it should be reloaded
Parameters:
  props - Buffer-local properties to set in the buffer
since:
   jEdit 3.2pre10



openFiles
public static Buffer openFiles(View view, String parent, String[] args)(Code)
Opens the file names specified in the argument array. This handles +line and +marker arguments just like the command line parser.
Parameters:
  parent - The parent directory
Parameters:
  args - The file names to open
since:
   jEdit 3.2pre4



openTemporary
public static Buffer openTemporary(View view, String parent, String path, boolean newFile)(Code)
Opens a temporary buffer. A temporary buffer is like a normal buffer, except that an event is not fired, the the buffer is not added to the buffers list.
Parameters:
  view - The view to open the file in
Parameters:
  parent - The parent directory of the file
Parameters:
  path - The path name of the file
Parameters:
  newFile - True if the file should not be loaded from disk
since:
   jEdit 3.2pre10



openTemporary
public static Buffer openTemporary(View view, String parent, String path, boolean newFile, Hashtable props)(Code)
Opens a temporary buffer. A temporary buffer is like a normal buffer, except that an event is not fired, the the buffer is not added to the buffers list.
Parameters:
  view - The view to open the file in
Parameters:
  parent - The parent directory of the file
Parameters:
  path - The path name of the file
Parameters:
  newFile - True if the file should not be loaded from disk
Parameters:
  props - Buffer-local properties to set in the buffer
since:
   jEdit 4.3pre10



pluginError
static void pluginError(String path, String messageProp, Object[] args)(Code)

Parameters:
  messageProp - - a property of a message to print
Parameters:
  args - a list of arguments whch correspond to {0} and {1} in the string to print.



propertiesChanged
public static void propertiesChanged()(Code)
Reloads various settings from the properties.



reloadAllBuffers
public static void reloadAllBuffers(View view, boolean confirm)(Code)
Reloads all open buffers.
Parameters:
  view - The view
Parameters:
  confirm - If true, a confirmation dialog will be shown firstif any buffers are dirty
since:
   jEdit 2.7pre2



reloadModes
public static void reloadModes()(Code)
Reloads all edit modes.
since:
   jEdit 3.2pre2



removeActionSet
public static void removeActionSet(ActionSet actionSet)(Code)
Removes an action set from jEdit's list. Plugins that add a dynamic action set must call this method at plugin unload time.
since:
   jEdit 4.2pre1



removePluginJAR
public static void removePluginJAR(PluginJAR jar, boolean exit)(Code)
Unloads the given plugin JAR with the specified path. Note that calling this at a time other than jEdit shutdown can have unpredictable results if the plugin has not been updated for the jEdit 4.2 plugin API.
Parameters:
  jar - The PluginJAR instance
Parameters:
  exit - Set to true if jEdit is exiting; enables someshortcuts so the editor can close faster.
since:
   jEdit 4.2pre1



removePluginProps
static void removePluginProps(Properties map)(Code)



resetProperty
final public static void resetProperty(String name)(Code)
Resets a property to its default value.
Parameters:
  name - The property
since:
   jEdit 2.5pre3



saveAllBuffers
public static void saveAllBuffers(View view)(Code)
Saves all open buffers.
Parameters:
  view - The view
since:
   jEdit 4.2pre1



saveAllBuffers
public static void saveAllBuffers(View view, boolean confirm)(Code)
Saves all open buffers.
Parameters:
  view - The view
Parameters:
  confirm - If true, a confirmation dialog will be shown first
since:
   jEdit 2.7pre2



saveSettings
public static void saveSettings()(Code)
Saves all user preferences to disk.



setActiveView
static void setActiveView(View view)(Code)



setBooleanProperty
final public static void setBooleanProperty(String name, boolean value)(Code)
Sets a boolean property.
Parameters:
  name - The property
Parameters:
  value - The value



setColorProperty
public static void setColorProperty(String name, Color value)(Code)
Sets the value of a color property.
Parameters:
  name - The property name
Parameters:
  value - The value
since:
   jEdit 4.0pre1



setDoubleProperty
final public static void setDoubleProperty(String name, double value)(Code)



setFontProperty
final public static void setFontProperty(String name, Font value)(Code)
Sets the value of a font property. The family is stored in the name property, the font size is stored in the namesize property, and the font style is stored in namestyle. For example, if name is view.gutter.font, the properties will be named view.gutter.font, view.gutter.fontsize, and view.gutter.fontstyle.
Parameters:
  name - The property
Parameters:
  value - The value
since:
   jEdit 4.0pre1



setIntegerProperty
final public static void setIntegerProperty(String name, int value)(Code)
Sets the value of an integer property.
Parameters:
  name - The property
Parameters:
  value - The value
since:
   jEdit 4.0pre1



setProperty
final public static void setProperty(String name, String value)(Code)
Sets a property to a new value.
Parameters:
  name - The property
Parameters:
  value - The new value



setTemporaryProperty
final public static void setTemporaryProperty(String name, String value)(Code)
Sets a property to a new value. Properties set using this method are not saved to the user properties list.
Parameters:
  name - The property
Parameters:
  value - The new value
since:
   jEdit 2.3final



showMemoryDialog
public static void showMemoryDialog(View view)(Code)
Performs garbage collection and displays a dialog box showing memory status.
Parameters:
  view - The view
since:
   jEdit 4.0pre1



unsetProperty
final public static void unsetProperty(String name)(Code)
Unsets (clears) a property.
Parameters:
  name - The property



updatePosition
static void updatePosition(String oldPath, Buffer buffer)(Code)
If buffer sorting is enabled, this repositions the buffer.



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.