Ignore:
Timestamp:
2009-03-30T13:25:28+13:00 (15 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.

File:
1 edited

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