Ignore:
Timestamp:
2009-03-30T13:01:18+13:00 (15 years ago)
Author:
anna
Message:

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

File:
1 edited

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          }
Note: See TracChangeset for help on using the changeset viewer.