Changeset 18837

Show
Ignore:
Timestamp:
30.03.2009 13:25:28 (10 years ago)
Author:
anna
Message:

committing bugfix 18835 so that format statements can be set to empty, eg. to get rid of the detach and nohighlight buttons.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/branches/2.81-fixed/src/org/greenstone/gatherer/cdm/FormatManager.java

    r15137 r18837  
    590590           
    591591          if (shouldSave){ 
    592             String format_str = editor_textarea.getText().trim(); 
    593             format_str = (format_str.equals(""))? getDefaultFormatString(format.getName()) : format_str; 
    594             format.setValue(format_str); 
     592            // Changed so DocumentButtons statement can be set to empty  
     593            // to get rid of the Detach and NOHIGHLIGHT buttons   
     594//            String format_str = editor_textarea.getText().trim(); 
     595//            format_str = (format_str.equals(""))? getDefaultFormatString(format.getName()) : format_str; 
     596            format.setValue(editor_textarea.getText().trim()); 
    595597            model.refresh((DOMProxyListEntry)format); 
    596598          }