|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.config.data.Tools
public final class Tools
Contains a number of useful tools.
Also contains a number of Strings needed in more than one class.
Field Summary | |
---|---|
static String |
ADD_PROPERTY_TOOLTIP
the tooltip for the add property dialog. |
static String |
ADVANCED_MODE_HINT
the tooltip for the advanced user mode. |
static KiemPropertyKeyWrapper |
AIMED_STEP_DURATION_KEY
identifier for the step duration. |
static String |
APPLICATION_NAME
the name of the application. |
static String |
ARE_YOU_SURE
title string for confirmation boxes. |
static String |
CONFIG_DATA_COMPONENT_NAME
the name for configuration component. |
static String |
CONFIG_DATA_PLUGIN_ID
the plugin id for configuration component. |
static String |
CONTRIBUTION_CONFIGURATION_KEY
the key for the preference store for the contribution manager. |
static String |
DEFAULT_CONFIGURATION_KEY
identifier for the default configuration. |
static KiemPropertyKeyWrapper |
DEFAULT_EDITOR_KEY
the key for the default editor. |
static KiemPropertyKeyWrapper |
DEFAULT_EDITOR_NAME_KEY
the key for the default editor name. |
static KiemPropertyKeyWrapper |
DEFAULT_PRIORITY_KEY
the key for the default priority. |
static String |
DELETE_QUESTION
message string for delete boxes. |
static String |
EDITOR_ID_NAME
identifier for the editor id. |
static String |
EDITOR_IDS_KEY
identifier for the list of editors. |
static String |
EDITOR_NAME
identifier for an editor. |
static String |
EDITOR_NAME_NAME
identifier for the editor name. |
static String |
IGNORED_KEYS_BUTTON_TOOLTIP
the tooltip for the always use defaults dialog. |
static String |
IGNORED_KEYS_KEY
identifier for the list of ignored keys. |
static String |
IS_ADVANCED_NAME
identifier for the advanced mode property. |
static String |
IS_MATCHING_VISIBLE_NAME
identifier for the matching combo. |
static String |
IS_RECENT_VISIBLE_NAME
identifier for the recent combo. |
static String |
LOCATION_NAME
identifier for the location of a file. |
static String |
MOST_RECENT_SCHEDULES_KEY
identifier for the list of most recently used schedules. |
static String |
PROPERTY_KEY_CANT_BE_NULL
An error message showing that the key can't be null. |
static String |
PROPERTY_KEY_HINT
the hint for the property key field. |
static String |
PROPERTY_KEY_NAME
the name for a property key. |
static String |
PROPERTY_NAME
the name for a property. |
static String |
PROPERTY_VALUE_HINT
the hint for the property value field. |
static String |
PROPERTY_VALUE_NAME
the name for a property value. |
static KiemPropertyKeyWrapper |
RECENT_CAPACITY_KEY
the key for the capacity of the recent schedules list. |
static String |
SCHEDULE_CONFIGURATION_KEY
identifier for the schedule configuration. |
static String |
SCHEDULE_DATA_NAME
identifier for a single scheduling data. |
static KiemPropertyKeyWrapper |
TIMEOUT_KEY
identifier for the timeout. |
static String |
WARNING_TITLE
the title of warning dialogs. |
Method Summary | ||
---|---|---|
static
|
arrayToList(T[] array)
Converts an array to a list. |
|
static KiemProperty |
getKiemProperty(String input)
Convenience method for parsing a property key and value and constructing a KiemProperty from it. |
|
static String |
getLabelFor(String key)
Get the humanly readable label for one of the keys. |
|
static String |
getRestartMessage(String attribute)
Constructs an info message about restart. |
|
static String |
getTooltipFor(String key)
Get a tooltip text for the element with the specified key. |
|
static String |
getValue(String key,
String input)
Get a value from an input string. |
|
static String[] |
getValueList(String key,
String input)
Get a list of values from an input string. |
|
static KiemProperty[] |
listToKiemPropertyArray(List<KiemProperty> list)
Convert a list to a KiemProperty array. |
|
static String |
putProperty(KiemProperty prop)
Convenience method for creating the string for a property. |
|
static String |
putValue(String key,
String value)
Create a string with start and end tags. |
|
static
|
removeFromArray(Type[] array,
int index)
Removes an element from an array. |
|
static void |
showErrorDialog(String message,
Shell shell)
Display an error dialog with a message. |
|
static void |
showErrorWithStackTrace(RuntimeException e0,
Shell shell)
Display an error dialog with a message. |
|
static void |
showParseWarningMissingEditorAttributes(String string)
Shows a silent warning in the main KIEMPlugin to notify the user that one of the EditorDefinitions couldn't be parsed. |
|
static void |
showParseWarningMissingPropertyAttributes(String string)
Shows a silent warning in the main KIEMPlugin to notify the user that one of the KiemProperties couldn't be parsed. |
|
static void |
showWarning(String textMessage,
Exception exception,
boolean silent)
KiemPlugin.showWarning(String, String, Exception, boolean) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final KiemPropertyKeyWrapper AIMED_STEP_DURATION_KEY
public static final KiemPropertyKeyWrapper DEFAULT_EDITOR_KEY
public static final KiemPropertyKeyWrapper DEFAULT_EDITOR_NAME_KEY
public static final KiemPropertyKeyWrapper DEFAULT_PRIORITY_KEY
public static final KiemPropertyKeyWrapper RECENT_CAPACITY_KEY
public static final KiemPropertyKeyWrapper TIMEOUT_KEY
public static final String ADD_PROPERTY_TOOLTIP
public static final String ADVANCED_MODE_HINT
public static final String APPLICATION_NAME
public static final String ARE_YOU_SURE
public static final String CONTRIBUTION_CONFIGURATION_KEY
public static final String DEFAULT_CONFIGURATION_KEY
public static final String DELETE_QUESTION
public static final String EDITOR_NAME
public static final String EDITOR_IDS_KEY
public static final String EDITOR_NAME_NAME
public static final String EDITOR_ID_NAME
public static final String IGNORED_KEYS_KEY
public static final String IGNORED_KEYS_BUTTON_TOOLTIP
public static final String IS_RECENT_VISIBLE_NAME
public static final String IS_MATCHING_VISIBLE_NAME
public static final String IS_ADVANCED_NAME
public static final String LOCATION_NAME
public static final String MOST_RECENT_SCHEDULES_KEY
public static final String CONFIG_DATA_COMPONENT_NAME
public static final String CONFIG_DATA_PLUGIN_ID
public static final String PROPERTY_NAME
public static final String PROPERTY_VALUE_NAME
public static final String PROPERTY_VALUE_HINT
public static final String PROPERTY_KEY_NAME
public static final String PROPERTY_KEY_CANT_BE_NULL
public static final String PROPERTY_KEY_HINT
public static final String SCHEDULE_CONFIGURATION_KEY
public static final String SCHEDULE_DATA_NAME
public static final String WARNING_TITLE
Method Detail |
---|
public static String getRestartMessage(String attribute)
attribute
- the attribute that was changed.
public static String getLabelFor(String key)
key
- the key to look for.
public static String getTooltipFor(String key)
key
- the key to look for.
public static <T> List<T> arrayToList(T[] array)
T
- the type of the listarray
- the array to convert
public static KiemProperty[] listToKiemPropertyArray(List<KiemProperty> list)
list
- the list to convert.
public static <Type> Type[] removeFromArray(Type[] array, int index)
Type
- the type of the arrayarray
- the arrayindex
- the index to be removed
public static void showErrorDialog(String message, Shell shell)
message
- the message to display.shell
- the parent shell.public static void showErrorWithStackTrace(RuntimeException e0, Shell shell)
e0
- the exception that should be printed.shell
- the parent shell.public static void showWarning(String textMessage, Exception exception, boolean silent)
KiemPlugin.showWarning(String, String, Exception, boolean)
.
textMessage
- the message explaining the error.exception
- the exception causing the error.silent
- true if a message box should be displayed.public static void showParseWarningMissingPropertyAttributes(String string)
string
- the key of the property that has no valuepublic static void showParseWarningMissingEditorAttributes(String string)
string
- the key of the property that has no valuepublic static String putValue(String key, String value)
key
- the key of the propertyvalue
- the value of the property
public static String putProperty(KiemProperty prop)
prop
- the property
public static String getValue(String key, String input)
key
- the key to look for.input
- the input string
public static String[] getValueList(String key, String input)
key
- the key to look for each individual element in the listinput
- the input string
public static KiemProperty getKiemProperty(String input)
input
- the input string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |