Changeset 18835

Show
Ignore:
Timestamp:
30.03.2009 13:01:18 (10 years ago)
Author:
anna
Message:

Fixed the problem that can't set a format statement to empty.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/cdm/FormatManager.java

    r18583 r18835  
    604604           
    605605          if (shouldSave){ 
    606             String format_str = editor_textarea.getText().trim(); 
    607             format_str = (format_str.equals(""))? getDefaultFormatString(format.getName()) : format_str; 
    608             format.setValue(format_str); 
     606          // Changed so DocumentButtons statement can be set to empty  
     607          // to get rid of the Detach and NOHIGHLIGHT buttons  
     608          //String format_str = editor_textarea.getText().trim(); 
     609          //format_str = (format_str.equals(""))? getDefaultFormatString(format.getName()) : format_str; 
     610            format.setValue(editor_textarea.getText().trim()); 
    609611            model.refresh((DOMProxyListEntry)format); 
    610612          }