• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.clients
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 5666

Show
Ignore:
Timestamp:
10/09/08 12:16:38 (6 weeks ago)
Author:
will
Message:

Exporting to Wiki

Location:
branches/ProtocolEditor/src
Files:
6 added
4 modified

  • actions/ExportAllWikiAction.java (added)
  • cmd/ExportWikiCmd.java (added)
  • ui/Controller.java (modified) (3 diffs)
  • ui/XMLView.java (modified) (1 diff)
  • ui/components/SimpleHTMLEditorPane.java (modified) (1 diff)
  • util/IExport.java (modified) (1 diff)
  • wiki (added)
  • wiki/Wiki.java (added)
  • wiki/WikiEdit.java (added)
  • wiki/WikiExport.java (added)

Legend:

Unmodified
Added
Removed
  • branches/ProtocolEditor/src/ui/Controller.java

    r5516 r5666  
    4545import actions.DuplicateFieldsAction; 
    4646import actions.ExportAllTextAction; 
     47import actions.ExportAllWikiAction; 
    4748import actions.ExportCalendarAction; 
    4849import actions.ExportHighltdTextAction; 
    … …  
    201202    static final Integer     HELP_USER_GUIDE = new Integer(38); 
    202203     
     204    /** Identifies the <code>ExportAllWikiAction</code>. */ 
     205    static final Integer     EXPORT_ALL_WIKI = new Integer(39); 
     206    
    203207     
    204208     
    … …  
    262266        actionsMap.put(VALIDATE_XML, new ValidateXMLAction(model)); 
    263267        actionsMap.put(HELP_USER_GUIDE, new HelpOnlineUserGuideAction(model)); 
     268        actionsMap.put(EXPORT_ALL_WIKI, new ExportAllWikiAction(model)); 
    264269    } 
    265270     
  • branches/ProtocolEditor/src/ui/XMLView.java

    r5581 r5666  
    228228                                controller.getAction(Controller.EXPORT_HIGHLT_HTML), 
    229229                                controller.getAction(Controller.EXPORT_ALL_TEXT), 
    230                                 controller.getAction(Controller.EXPORT_HIGHLTD_TEXT)}; 
     230                                controller.getAction(Controller.EXPORT_HIGHLTD_TEXT), 
     231                                controller.getAction(Controller.EXPORT_ALL_WIKI)}; 
    231232                JButton printButton = new PopupMenuButton("Export the current file for printing",  
    232233                                printIcon, printExportActions); 
  • branches/ProtocolEditor/src/ui/components/SimpleHTMLEditorPane.java

    r5549 r5666  
    188188                htmlText = htmlText.replaceAll("</p>", ""); 
    189189                htmlText = htmlText.replaceAll("<p style=\"margin-top: 0\">", "<br>"); 
     190                htmlText = htmlText.replaceAll("      ", ""); 
     191                 
     192                 
     193                System.out.println("SimpleHTMLEditorPane getTextNoTags: "); 
     194                System.out.println(htmlText); 
    190195                 
    191196                return htmlText; 
  • branches/ProtocolEditor/src/util/IExport.java

    r5260 r5666  
    5656         
    5757         
     58        /** 
     59         * Exports the given dataField nodes as a String.  
     60         * This method works by creating a temporary file, delegating the 
     61         * export to that file, using {@link #export(File, List)} and then  
     62         * converting the file to a String. The temp file is deleted before  
     63         * returning the String. 
     64         *  
     65         * @param rootNodes             A list of the nodes to export 
     66         * @return String               A string representation of the export.  
     67         */ 
     68        public String exportToString(List<DataFieldNode> rootNodes); 
    5869} 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/