charite.christo
Class Customize
java.lang.Object
charite.christo.Customize
- All Implemented Interfaces:
- ChRunnable, HasModiCount, HasPanel, java.awt.event.ActionListener, java.util.EventListener
public final class Customize
- extends java.lang.Object
- implements java.awt.event.ActionListener, HasPanel, ChRunnable, HasModiCount
HELP
The customize-dialogs are used to set program options.
Data-types:
- Single WIKI:Executable: Can be the absolute Path of an executable
file such as /opt/acrobat5/acroread.
Only the first line is evaluated, the other lines
can be used for notes.
A file-path can start with an environment variable.
In Windows a shell variable can be written with a leading dollar like $ProgramFiles or with percent signs like %ProgramFiles%.
- List of shell commands: The lines contain alternative shell
commands to start programs for one particular task. There are usually several
programs. For example there are many different pdf-viewers around.
All lines are successively executed one after the other until one
line succeeds because the software designated in the line is
installed on the machine.
This is tested by STRAP using the WIKI:Exit_status.
Note for Windows-Users: The prefix "start" which is
used to start programs under Windows does not return proper exit
values. As a consequence, STRAP will always assume that the respective program was successfully started.
Comments are preceded by "#".
- Single text string
- Lists of text strings, one item per line
The settings are saved in text files in the directory ~/.StrapAlign.
Windows:
The %PATH%-variable does not contain all WIKI:Executable files and
therefore full file paths are often needed.
Adding START at the beginning of a command line may avoid the need to enter absolute paths.
Using a new shell
For using complicated shell commands with pipes, redirection, loops etc. the
expression should be started with "SH " ("CYGWINSH " on Windows).
White space in file names: According to the
WIKI:Url_encoding, white space in directory and file names must be
encoded by "%20". Nevertheless, on standard computer systems, white space
is generally avoided in file names, and this will only be the case on MS-Windows.
Setting values from file: With specific command-line options,
further lines can be added. These lines are added to the default
settings or if changed by the user to the text entered by the
user. The command line option is formed by appending the name of the
customize dialog to the prefix "customizeAdd". For example to add
script lines you add the command line parameters
-customizeAddScriptByRegex file. File is either a file or an
URL. If the program is started from an URL, then
"&customizeAddScriptByRegex=file" is added to the URL. Note that
URL-encoding needs to be applied to file.
JCOMPONENT:Customize#docuView()
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 |
Constructor Summary |
Customize(java.lang.String name,
java.lang.String[] defaultSetting,
java.lang.String help,
int type)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
databases
public static final int databases
- See Also:
- Constant Field Values
proteinDatabases
public static final int proteinDatabases
- See Also:
- Constant Field Values
webLinks
public static final int webLinks
- See Also:
- Constant Field Values
C_compiler
public static final int C_compiler
- See Also:
- Constant Field Values
CplusPlus_compiler
public static final int CplusPlus_compiler
- See Also:
- Constant Field Values
latexEditors
public static final int latexEditors
- See Also:
- Constant Field Values
dviPsConverter
public static final int dviPsConverter
- See Also:
- Constant Field Values
dviViewer
public static final int dviViewer
- See Also:
- Constant Field Values
fileBrowsers
public static final int fileBrowsers
- See Also:
- Constant Field Values
fortran_compiler
public static final int fortran_compiler
- See Also:
- Constant Field Values
htmlEditors
public static final int htmlEditors
- See Also:
- Constant Field Values
javaSourceEditor
public static final int javaSourceEditor
- See Also:
- Constant Field Values
laf
public static final int laf
- See Also:
- Constant Field Values
pdfViewer
public static final int pdfViewer
- See Also:
- Constant Field Values
proteinFileExtensions
public static final int proteinFileExtensions
- See Also:
- Constant Field Values
psPoster
public static final int psPoster
- See Also:
- Constant Field Values
psViewer
public static final int psViewer
- See Also:
- Constant Field Values
textEditors
public static final int textEditors
- See Also:
- Constant Field Values
watchLogFile
public static final int watchLogFile
- See Also:
- Constant Field Values
webBrowser
public static final int webBrowser
- See Also:
- Constant Field Values
error
public static final int error
- See Also:
- Constant Field Values
pdbSite
public static final int pdbSite
- See Also:
- Constant Field Values
pdflatex
public static final int pdflatex
- See Also:
- Constant Field Values
latex
public static final int latex
- See Also:
- Constant Field Values
openFileWith
public static final int openFileWith
- See Also:
- Constant Field Values
scriptByRegex
public static final int scriptByRegex
- See Also:
- Constant Field Values
execAminoSeq
public static final int execAminoSeq
- See Also:
- Constant Field Values
execResidueSelection
public static final int execResidueSelection
- See Also:
- Constant Field Values
ecClassLinks
public static final int ecClassLinks
- See Also:
- Constant Field Values
webSearches
public static final int webSearches
- See Also:
- Constant Field Values
pdbLinks
public static final int pdbLinks
- See Also:
- Constant Field Values
uniprotLinks
public static final int uniprotLinks
- See Also:
- Constant Field Values
testProxySelector
public static final int testProxySelector
- See Also:
- Constant Field Values
keggOrganisms
public static final int keggOrganisms
- See Also:
- Constant Field Values
speciesIcons
public static final int speciesIcons
- See Also:
- Constant Field Values
cssAlignBrowser
public static final int cssAlignBrowser
- See Also:
- Constant Field Values
seqFeatureColors
public static final int seqFeatureColors
- See Also:
- Constant Field Values
trustExe
public static final int trustExe
- See Also:
- Constant Field Values
refuseExe
public static final int refuseExe
- See Also:
- Constant Field Values
MAX_ID
public static final int MAX_ID
- See Also:
- Constant Field Values
EXECUTABLE
public static final int EXECUTABLE
- See Also:
- Constant Field Values
EXECUTABLES
public static final int EXECUTABLES
- See Also:
- Constant Field Values
LATEX
public static final int LATEX
- See Also:
- Constant Field Values
LIST
public static final int LIST
- See Also:
- Constant Field Values
LIST_OF_CLASSES
public static final int LIST_OF_CLASSES
- See Also:
- Constant Field Values
FILE
public static final int FILE
- See Also:
- Constant Field Values
FILES
public static final int FILES
- See Also:
- Constant Field Values
TEXT_LINES
public static final int TEXT_LINES
- See Also:
- Constant Field Values
LIST_OF_DIRECTORIES
public static final int LIST_OF_DIRECTORIES
- See Also:
- Constant Field Values
SHELL_SCRIPT
public static final int SHELL_SCRIPT
- See Also:
- Constant Field Values
CLASSPATH
public static final int CLASSPATH
- See Also:
- Constant Field Values
MAP_TO_1_FROM_N
public static final int MAP_TO_1_FROM_N
- See Also:
- Constant Field Values
URL
public static final int URL
- See Also:
- Constant Field Values
MAX_VARIABLE
public static final int MAX_VARIABLE
- See Also:
- Constant Field Values
FLAG_SKIP_COMMENTS
public static final int FLAG_SKIP_COMMENTS
- See Also:
- Constant Field Values
FLAG_INTERN
public static final int FLAG_INTERN
- See Also:
- Constant Field Values
FLAG_REPLACE
public static final int FLAG_REPLACE
- See Also:
- Constant Field Values
FLAG_NOTIFY_IMMEDIATELY
public static final int FLAG_NOTIFY_IMMEDIATELY
- See Also:
- Constant Field Values
NONE
public static final Customize[] NONE
CLASS_Example
public static final int CLASS_Example
- See Also:
- Constant Field Values
CLASS_ExecPath
public static final int CLASS_ExecPath
- See Also:
- Constant Field Values
CLASS_InitCommands
public static final int CLASS_InitCommands
- See Also:
- Constant Field Values
CLASS_LateCommands
public static final int CLASS_LateCommands
- See Also:
- Constant Field Values
Customize
public Customize(java.lang.String name,
java.lang.String[] defaultSetting,
java.lang.String help,
int type)
docuView
public static javax.swing.JComponent docuView()
modificationCount
public int modificationCount()
- Specified by:
modificationCount
in interface HasModiCount
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toCommandLineOption
public static java.lang.String toCommandLineOption(java.lang.String name)
downloadFiles
public static void downloadFiles(java.lang.String[] namesOfCustomize)
afterDL
public static void afterDL(java.lang.String name)
getSettingsV
public java.util.List<java.lang.String> getSettingsV()
addHiddenEntries
public void addHiddenEntries(boolean uniq,
java.lang.String... ss)
getSettings
public java.lang.String[] getSettings()
getSetting
public java.lang.String getSetting()
getPanel
public javax.swing.JComponent getPanel(int options)
- Specified by:
getPanel
in interface HasPanel
newButtonAll
public static ChButton newButtonAll(java.lang.String id)
newButton
public static ChButton newButton(int... IDs)
newButton
public ChButton newButton()
newButton
public static ChButton newButton(Customize... cc)
newComboBox
public ChCombo newComboBox()
setParent
public static void setParent(ChTabPane tp,
java.awt.event.ActionListener li)
addDialog
public static void addDialog(Customize... cc)
cc
public static Customize[] cc(java.lang.Object o)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ev)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
save
public void save(boolean always)
addLine
public void addLine(java.lang.String s)
customize
public static Customize customize(int id)
run
public java.lang.Object run(java.lang.String id,
java.lang.Object arg)
- Specified by:
run
in interface ChRunnable
getCustomizableForClass
public static Customize getCustomizableForClass(java.lang.Class clazz,
java.lang.String id,
java.lang.String help,
int type)
getCustomizableForClass
public static Customize getCustomizableForClass(java.lang.Class c,
int id)
'The most important classes are StrapAlign, Protein and StrapEvent.'