label="Parse Error"
value="255,0,0">
</colorDefinition>
+ <colorDefinition
+ categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
+ id="eu.etaxonomy.taxeditor.preferences.colorDefinition.disabledEditor"
+ label="Disabled Name Editor Field"
+ value="105,114,124">
+ </colorDefinition>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
*
* @return The parsed NonViralName object
*/
- public NonViralName parse(){
+ public NonViralName parse(String unparsedNameString){
- String unparsedNameString = "";
- try {
- Method getText;
- getText = textWidget.getClass().getDeclaredMethod("getText", null);
- unparsedNameString = (String) getText.invoke(textWidget, null);
- } catch (Exception e) {
- // we should never get here
- StoreUtil.error(this.getClass(), "Error trying to invoke getText method", e);
- }
+// String unparsedNameString = "";
+// try {
+// Method getText;
+// getText = textWidget.getClass().getDeclaredMethod("getText", null);
+// unparsedNameString = (String) getText.invoke(textWidget, null);
+// } catch (Exception e) {
+// // we should never get here
+// StoreUtil.error(this.getClass(), "Error trying to invoke getText method", e);
+// }
nonViralNameParser.parseReferencedName(name, unparsedNameString,
*
* @return The parsed NonViralName object
*/
- public NonViralName parseAndResolveDuplicates(){
+ public NonViralName parseAndResolveDuplicates(String unparsedNameString){
- NonViralName parsedName = parse();
+ NonViralName parsedName = parse(unparsedNameString);
MatchMatrix matchMatrix = findMatches(parsedName);
public static final String COLOR_LIST_EVEN = "eu.etaxonomy.taxeditor.preferences.colorDefinition.listBackgroundEven";
/** Constant <code>COLOR_LIST_ODD="eu.etaxonomy.taxeditor.preferences.colo"{trunked}</code> */
public static final String COLOR_LIST_ODD = "eu.etaxonomy.taxeditor.preferences.colorDefinition.listBackgroundOdd";
+
public static final String COLOR_PARSE_ERROR = "eu.etaxonomy.taxeditor.preferences.colorDefinition.parseError";
+ public static final String COLOR_DISABLED_EDITOR = "eu.etaxonomy.taxeditor.preferences.colorDefinition.disabledEditor";
+
}