charite.christo
Class ExecByRegex
java.lang.Object
charite.christo.ExecByRegex
- All Implemented Interfaces:
- ChRunnable, ProcessEv
public final class ExecByRegex
- extends java.lang.Object
- implements ProcessEv, ChRunnable
HELP
This Dialog allows to apply shell commands to selected text regions and object IDs.
It provides one way of linking other programs.
The list of shell scripts can be customizable.
The user can chose the shell script to be applied to a certain text-string from a browsable
tree.
This hierarchical tree contains the menu and sub-menus and shell-scripts and Web addresses.
The list of shell-scripts is customizable at run-time.
Alternatively, the program option "-customizeAddScriptByRegex" can be used to specify a file with shell-scripts.
Example:
demo\Example google%09.*%09http://www.google.com/search?q=*
demo\Example: Matches starting with M%09^M.*$%09 echo starts with letter M *
Each line associates a shell script (3rd column) to regular expression (2nd column).
The asterisk is replaced by the text.
The shell script is presented to the user as a menu item.
The menu item path is given in the 1st column with back-slash being the separator.
If the value in the 3rd column starts with http://, then it is not taken as a shell script but as a Web address.
Fields inherited from interface charite.christo.ChRunnable |
APPEND, COLUMN_TITLE, DOWNLOAD_FINISHED, GET_PANEL, ICON, INTERPRET_LINE, IS_DRAG4XY, ITEM_TEXT, MODIFY_RENDERER_COMPONENT, PROGRESS, REPAINT_CURSOR, SAY_DOWNLOADING, SET_ICON_IMAGE, SET_TREE_VALUE, SHOW_IN_FRAME, TAB_TEXT, TIP_TEXT |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecByRegex
public ExecByRegex()
getInstance
public static ExecByRegex getInstance(int i)
setText
public ExecByRegex setText(java.lang.String s)
getPanel
public javax.swing.JComponent getPanel()
run
public java.lang.Object run(java.lang.String id,
java.lang.Object arg)
- Specified by:
run
in interface ChRunnable
processEv
public void processEv(java.awt.AWTEvent ev)
- Specified by:
processEv
in interface ProcessEv
- See Also:
EvAdapter
screenshot
public static javax.swing.JComponent screenshot()
main
public static void main(java.lang.String[] argv)
throws java.lang.Exception
- Throws:
java.lang.Exception
'The most important classes are StrapAlign, Protein and StrapEvent.'