java.lang.Object
com.yaftp.utils.OsEditorPanePanel
- All Implemented Interfaces:
- SwingTextEditors
- public class OsEditorPanePanel
- extends java.lang.Object
- implements SwingTextEditors
we implement here a way to be able to start Operating System
dependent text editors like (Emacs,Xemacs,Ultraedit32) to manipulate
transfered files
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_WKFNAME_
private static final java.lang.String _WKFNAME_
- See Also:
- Constant Field Values
_DOT_HTML_
private static final java.lang.String _DOT_HTML_
- See Also:
- Constant Field Values
_DOT_HTM_
private static final java.lang.String _DOT_HTM_
- See Also:
- Constant Field Values
_browsingEnvironmentString
private java.lang.String _browsingEnvironmentString
- name of the Editor program to launch + parms
_editorEnvironmentString
private java.lang.String _editorEnvironmentString
_workDirectory
private java.lang.String _workDirectory
_type
private int _type
_providedFName
private java.lang.String _providedFName
OsEditorPanePanel
public OsEditorPanePanel()
set_editorEnvironmentString
public void set_editorEnvironmentString(java.lang.String environmentString)
- set the full path name of the os program to be launched when editing
set_browsingEnvironmentString
public void set_browsingEnvironmentString(java.lang.String environmentString)
- set the full path name of the os program to be launched when browsing
set_workDirectory
public void set_workDirectory(java.lang.String workDirectory)
setEditorKit
public void setEditorKit(int type)
- we use it here to build a file suffix to work file
- Specified by:
setEditorKit in interface SwingTextEditors
set_providedFName
public void set_providedFName(java.lang.String providedFName)
- give a chance to caller to provide a waork file name
get_panel
public javax.swing.JPanel get_panel()
- provide a way to setup
/**
as external text editor launcher, we do not provide a PANEL
able to be viewed inside the YaFtp internal frame so we return
null here.
- Specified by:
get_panel in interface SwingTextEditors
buildWkFile
private java.io.File buildWkFile(java.lang.Object object)
throws UtilsError
- store a temporary file which will contain the text or byte array to be externally
edited
load
public void load(java.lang.Object object)
throws UtilsError
- the load method just launches an instance of the external editor,
used to bring object up to screen.
This method is able to deal with binary , string and File objects
- Specified by:
load in interface SwingTextEditors
main
public static void main(java.lang.String[] args)