Changeset 3838
- Timestamp:
- Oct 16, 2007, 1:38:56 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 16 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r3832 r3838 1102 1102 <property name="base.version" value="${base.version}"/> 1103 1103 </ant> 1104 <copy todir="${docbook.html.out}"> 1105 <fileset dir="${docbook.src}" includes="css/*.*" /> 1106 <fileset dir="${docbook.src}" includes="script/*.*" /> 1107 </copy> 1104 1108 1105 1109 <property name="catalog.location" location="${lib}/docbook/preprocess/catalog.xml" /> -
trunk/doc/3rd-party-components.txt
r3737 r3838 230 230 Files : Everything in lib/docbook except the 'docbook' subdirectory 231 231 232 Example code syntax highlighter 233 ------------------------------- 234 A javascript library that can be used to dynamically highlight 235 the syntax in program examples. We have made minor changes to 236 make it support the HTML produced by Docbook (ie. find the language 237 from the 'language' attribute instead of the 'class' attribute). 238 239 More info: http://www.dreamprojections.com/syntaxhighlighter 240 Version : 1.5.1 241 License : LGPL (lgpl.txt) 242 Files : Everything in the /doc/src/docbook/script and 243 /doc/src/docbook/css directories 232 244 233 245 Affymetrix Fusion SDK -
trunk/doc/src/docbook/developerdoc/api_overview.xml
r3835 r3838 1092 1092 </para> 1093 1093 1094 <programlisting >1094 <programlisting language="java"> 1095 1095 DbControl dc = ... 1096 1096 FileStoreEnabled item = ... … … 1156 1156 </para> 1157 1157 1158 <programlisting >1158 <programlisting language="java"> 1159 1159 DbControl dc = ... 1160 1160 FileStoreEnabled item = ... … … 1258 1258 </para> 1259 1259 1260 <programlisting >1260 <programlisting language="java"> 1261 1261 RawBioAssay rba = ... 1262 1262 DbControl dc = ... … … 1280 1280 </para> 1281 1281 1282 <programlisting >1282 <programlisting language="java"> 1283 1283 RawBioassay rba = ... 1284 1284 // The file the user selected to import from … … 1312 1312 </para> 1313 1313 1314 <programlisting >1314 <programlisting language="java"> 1315 1315 Experiment e = ... 1316 1316 RawDataType rdt = e.getRawDataType(); … … 1326 1326 </para> 1327 1327 1328 <programlisting >1328 <programlisting language="java"> 1329 1329 Experiment e = ... 1330 1330 DbControl dc = ... -
trunk/doc/src/docbook/developerdoc/core_ref.xml
r3715 r3838 330 330 </para> 331 331 332 <programlisting >332 <programlisting language="java"> 333 333 public static int long MAX_ADDRESS_LENGTH = 255; 334 334 private String address; … … 366 366 cases end with <classname>Data</classname>. 367 367 </para> 368 <programlisting >368 <programlisting language="java"> 369 369 public class SampleData 370 370 extends CommonData … … 408 408 </para> 409 409 410 <programlisting >410 <programlisting language="java"> 411 411 // From GroupData.java 412 412 public GroupData() … … 853 853 <title>Class mapping</title> 854 854 855 <programlisting >855 <programlisting language="java"> 856 856 /** 857 857 This class holds information about any data... … … 963 963 <bridgehead>String properties</bridgehead> 964 964 965 <programlisting >965 <programlisting language="java"> 966 966 public static int long MAX_STRINGPROPERTY_LENGTH = 255; 967 967 private String stringProperty; … … 996 996 <bridgehead>Numerical properties</bridgehead> 997 997 998 <programlisting >998 <programlisting language="java"> 999 999 private int intProperty; 1000 1000 /** … … 1020 1020 1021 1021 <bridgehead>Boolean properties</bridgehead> 1022 <programlisting >1022 <programlisting language="java"> 1023 1023 private boolean booleanProperty; 1024 1024 /** … … 1044 1044 <bridgehead>Date values</bridgehead> 1045 1045 1046 <programlisting >1046 <programlisting language="java"> 1047 1047 private Date dateProperty; 1048 1048 /** … … 1101 1101 <title>Many-to-one mappings</title> 1102 1102 1103 <programlisting >1103 <programlisting language="java"> 1104 1104 private OtherData other; 1105 1105 /** … … 1205 1205 </para> 1206 1206 1207 <programlisting >1207 <programlisting language="java"> 1208 1208 // RoleData.java 1209 1209 private Set<UserData> users; … … 1250 1250 </para> 1251 1251 1252 <programlisting >1252 <programlisting language="java"> 1253 1253 // UserData.java 1254 1254 private Set<RoleData> roles; … … 1287 1287 </para> 1288 1288 1289 <programlisting >1289 <programlisting language="sql"> 1290 1290 SELECT ... FROM GroupData grp WHERE grp.users ... 1291 1291 SELECT ... FROM UserData usr WHERE usr.groups ... … … 1333 1333 </para> 1334 1334 1335 <programlisting >1335 <programlisting language="java"> 1336 1336 // ClientData.java 1337 1337 private Set<HelpData> helpTexts; … … 1393 1393 </para> 1394 1394 1395 <programlisting >1395 <programlisting language="java"> 1396 1396 // ProjectData.java 1397 1397 private Map<UserData, Integer> users; … … 1482 1482 </para> 1483 1483 1484 <programlisting >1484 <programlisting language="java"> 1485 1485 // HybridizationData.java 1486 1486 private ArraySlideData arrayslide; … … 1536 1536 </para> 1537 1537 1538 <programlisting >1538 <programlisting language="java"> 1539 1539 // UserData.java 1540 1540 /** … … 1635 1635 </para> 1636 1636 1637 <programlisting >1637 <programlisting language="java"> 1638 1638 /** 1639 1639 This class holds information about any items. … … 1669 1669 </para> 1670 1670 1671 <programlisting >1671 <programlisting language="java"> 1672 1672 // UserData.java 1673 1673 private String address; … … 1713 1713 </para> 1714 1714 1715 <programlisting >1715 <programlisting language="java"> 1716 1716 /** 1717 1717 The maximum length of the name of an item that can be -
trunk/doc/src/docbook/developerdoc/documentation.xml
r3791 r3838 152 152 <example id="docbook.examples.chapterbody"> 153 153 <title>Example of a chapter</title> 154 <programlisting ><?xml version="1.0" encoding="UTF-8"?>154 <programlisting language="xml"><?xml version="1.0" encoding="UTF-8"?> 155 155 <!DOCTYPE chapter PUBLIC 156 156 "-//Dawid Weiss//DTD DocBook V3.1-Based Extension for XML and graphics inclusion//EN" 157 157 "../../../../lib/docbook/preprocess/dweiss-docbook-extensions.dtd"> 158 158 159 <chapter id=" <replaceable>example_chapter</replaceable>">160 <?dbhtml dir=" <replaceable>folder name to put the chapter's files in</replaceable>"?>159 <chapter id="example_chapter"> 160 <?dbhtml dir="folder name to put the chapter's files in"?> 161 161 <title>Example of a chapter </title> 162 162 <para> 163 163 … 164 164 </para> 165 <sect1 id=" <replaceable>example_chapter.sect1</replaceable>">165 <sect1 id="example_chapter.sect1"> 166 166 <title>Example of top level section </title> 167 167 <para> 168 168 … 169 169 </para> 170 <sect2 id=" <replaceable>example_chapter.sect1.sect2</replaceable>">170 <sect2 id="example_chapter.sect1.sect2"> 171 171 <title>Example of second level section </title> 172 172 <para> 173 173 … 174 174 </para> 175 <sect3 id=" <replaceable>example_chapter.sect1.sect2.sect3</replaceable>">175 <sect3 id="example_chapter.sect1.sect2.sect3"> 176 176 <title>Example of third level section</title> 177 177 <para> … … 207 207 <example id="docbook.examples.include_chapter"> 208 208 <title>Include a chapter</title> 209 <programlisting ><part id="userdoc">209 <programlisting language="xml:nogutter:nocontrols"><part id="userdoc"> 210 210 <title>User documentation</title> 211 211 <include file= "about.xml"/> … … 219 219 <include file="protocols.xml"/> 220 220 <include file="hardware.xml"/> 221 <userinput><include file="example_chapter.xml"/></userinput>221 <include file="example_chapter.xml"/> 222 222 <include file="software.xml"/> 223 223 <include file="array_lims.xml"/> … … 254 254 as an attribute to the <sgmltag class="starttag">chapter</sgmltag> tag, for example: 255 255 </para> 256 <programlisting ><chapter id="resources" chunked="0"></programlisting>256 <programlisting language="xml"><chapter id="resources" chunked="0"></programlisting> 257 257 <para> 258 258 This will stop the chunking of <sgmltag class="starttag">sect1</sgmltag> … … 267 267 section in a separate chunk: 268 268 </para> 269 <programlisting ><sect1 id="sect.with.large.sect2" chunked="1"></programlisting>269 <programlisting language="xml"><sect1 id="sect.with.large.sect2" chunked="1"></programlisting> 270 270 271 271 </sect3> … … 418 418 <example id="docbook.examples.helptexttag"> 419 419 <title>How to use the help text tag</title> 420 <programlisting ><sect1>421 <helptext external_id=" <replaceable>helptexts.external.id</replaceable>" title="<replaceable>The title</replaceable>">422 <replaceable>The text that also should be used as a helptext in the program.</replaceable>420 <programlisting language="xml"><sect1> 421 <helptext external_id="helptexts.external.id" title="The title"> 422 The text that also should be used as a helptext in the program. 423 423 <seeother> 424 <other external_id=" <replaceable>other.external.id</replaceable>">425 <replaceable>Related info here...</replaceable></other>424 <other external_id="other.external.id"> 425 Related info here...</other> 426 426 </seeother> 427 427 </helptext> … … 440 440 outputted to the help texts. 441 441 </para> 442 <programlisting ><nohelp>see <xref linkend="chapter11" /></nohelp></programlisting>442 <programlisting language="xml"><nohelp>see <xref linkend="chapter11" /></nohelp></programlisting> 443 443 </sect4> 444 444 … … 467 467 </variablelist> 468 468 469 <programlisting ><seeother>469 <programlisting language="xml"><seeother> 470 470 <other external_id="userpreferences.password">Change password</other> 471 471 <other external_id="userpreferences.other">Other information</other> … … 784 784 Method with no arguments and a return value 785 785 </title> 786 <programlisting >…786 <programlisting language="xml"> 787 787 <methodsynopsis language="java"> 788 788 <modifier>public</modifier> … … 791 791 <void /> 792 792 </methodsynopsis> 793 …</programlisting>793 </programlisting> 794 794 </example> 795 795 <example id="docbook.examples.methodimpl1"> … … 797 797 Method with arguments and no return value 798 798 </title> 799 <programlisting >…799 <programlisting language="xml"> 800 800 <methodsynopsis language="java"> 801 801 <modifier>public</modifier> … … 815 815 </methodparam> 816 816 </methodsynopsis> 817 …</programlisting>817 </programlisting> 818 818 </example> 819 819 … … 910 910 <example id="docbook.examples.guielements"> 911 911 <title>Describe a menu choice</title> 912 <programlisting >…912 <programlisting language="xml"> 913 913 <menuchoice> 914 914 <guimenu>Administrate</guimenu> … … 916 916 <guimenuitem>Types</guimenuitem> 917 917 </menuchoice> 918 …</programlisting>918 </programlisting> 919 919 <para> 920 920 In the text it will look like this: … … 943 943 is implemented with the following code 944 944 </para> 945 <programlisting ><figure id="docbook.figures.menuchoice">945 <programlisting language="xml"><figure id="docbook.figures.menuchoice"> 946 946 <title>The home page</title> 947 947 <screenshot> … … 1034 1034 </para> 1035 1035 </warning> 1036 <note> 1037 <itemizedlist> 1038 <listitem> 1039 <simpara> 1040 The verbatim text must begin on the same row as the start tag of a 1041 verbatim element if you do not want an empty line at the top of the 1042 text area. 1043 </simpara> 1044 </listitem> 1045 <listitem> 1046 <simpara> 1047 The verbatim text is splitted into several lines if the text contains 1048 more then 80 characters. This could give the text an unwanted look and 1049 it's therefore recommended to manually insert new lines to have controll 1050 over layout of the text 1051 </simpara> 1052 </listitem> 1053 </itemizedlist> 1054 </note> 1036 1037 <itemizedlist> 1038 <listitem> 1039 <simpara> 1040 The verbatim text is splitted into several lines if the text contains 1041 more then 80 characters. This could give the text an unwanted look and 1042 it's therefore recommended to manually insert new lines to have controll 1043 over layout of the text 1044 </simpara> 1045 </listitem> 1046 <listitem> 1047 <simpara> 1048 We have added support for syntax highlightning of program 1049 examples in the HTML version. To enable it add a 1050 <sgmltag class="attribute">language</sgmltag> 1051 attribute with one of the following values: <constant>java</constant>, 1052 <constant>xml</constant> or <constant>sql</constant>. The highlightning engine 1053 support more languages. To add support for those in docbook, change 1054 the <filename>customized.chunked.xsl</filename> file. The syntax highlightning 1055 engine doesn't handle markup inside the <sgmltag class="starttag">programlisting</sgmltag> 1056 tag very well. You should avoid that. By default, java program examples 1057 include line numbering, but not xml examples. To disable line numbering 1058 for java add <constant>:nogutter</constant> to the <sgmltag>language</sgmltag> 1059 attribute: <constant><programlisting language="java:nogutter"></constant>. 1060 To enable line numbering for xml add <constant>:gutter</constant> to the <sgmltag>language</sgmltag> 1061 attribute: <constant><programlisting language="xml:gutter"></constant>. 1062 </simpara> 1063 </listitem> 1064 </itemizedlist> 1065 1055 1066 <example id="docbook.examples.example"> 1056 1067 <title>Example in the documentation</title> … … 1060 1071 is written in the corresponding XML-file. 1061 1072 </para> 1062 <programlisting >…1073 <programlisting language="xml"> 1063 1074 <example id="net.sf.basedb.core.plugin.Plugin.getAbout"> 1064 1075 <title>A typical implementation stores this information 1065 1076 in a static field</title> 1066 <programlisting>private static final About about = new AboutImpl 1077 <programlisting language="java"> 1078 private static final About about = new AboutImpl 1067 1079 ( 1068 1080 "Spot images creator", … … 1079 1091 { 1080 1092 return about; 1081 } </programlisting> 1093 } 1094 </programlisting> 1082 1095 </example> 1083 …</programlisting>1096 </programlisting> 1084 1097 </example> 1085 1098 </sect3> … … 1194 1207 <example id="docbook.examples.variablelist"> 1195 1208 <title>Example how to write a variable list</title> 1196 <programlisting >…1209 <programlisting language="xml"> 1197 1210 <variablelist> 1198 1211 <varlistentry> … … 1262 1275 <example id="docbook.examples.links"> 1263 1276 <title>Links</title> 1264 <programlisting >…1277 <programlisting language="xml"> 1265 1278 <xref linkend="docbook.usedtags.links" /> 1266 1279 <link linkend="docbook.usedtags.links">Link to this section</link> 1267 1280 <ulink url="http://base.thep.lu.se">Base2's homepage</ulink> 1268 …</programlisting>1281 </programlisting> 1269 1282 <para> 1270 1283 The first element will autogenerate the linked section's/chapter's title as a -
trunk/doc/src/docbook/developerdoc/plugin_developer.xml
r3763 r3838 81 81 <example id="plugin_developer.organize.build.file"> 82 82 <title>A simple build file</title> 83 <programlisting ><?xml version="1.0" encoding="UTF-8"?>83 <programlisting language="xml"><?xml version="1.0" encoding="UTF-8"?> 84 84 <project 85 85 name="MyPlugin" … … 190 190 and be in the format described below. 191 191 </para> 192 <programlisting><?xml version="1.0" encoding="UTF-8"?> 192 <programlisting language="xml"> 193 <?xml version="1.0" encoding="UTF-8"?> 193 194 <!DOCTYPE plugins SYSTEM "base-plugins.dtd" > 194 <plugins jarname=" <filename>jarfile.jar</filename>">195 <pluginclass classname=" <classname>se.lu.thep.PluginClass</classname>">195 <plugins jarname="jarfile.jar"> 196 <pluginclass classname="se.lu.thep.PluginClass"> 196 197 <minbaseversion>2.4</minbaseversion> 197 198 <hasconfigurations/> … … 200 201 . 201 202 . 202 </plugins></programlisting> 203 </plugins> 204 </programlisting> 203 205 <para> 204 206 The first two lines should be the same in all base-plugins.xml, rest of the tags are … … 361 363 <example id="net.sf.basedb.core.plugin.Plugin.getAbout"> 362 364 <title>A typical implementation stores this information in a static field</title> 363 <programlisting>private static final About about = new AboutImpl 365 <programlisting language="java"> 366 private static final About about = new AboutImpl 364 367 ( 365 368 "Spot images creator", … … 435 438 <example id="net.sf.basedb.core.plugin.Plugin.getMainType"> 436 439 <title>A typical implementation just return one of the values</title> 437 <programlisting>public Plugin.MainType getMainType() 440 <programlisting language="java"> 441 public Plugin.MainType getMainType() 438 442 { 439 443 return Plugin.MainType.OTHER; … … 585 589 <example id="net.sf.basedb.core.plugin.Plugin.init"> 586 590 <title>The <classname>AbstractPlugin</classname> implementation of Plugin.init()</title> 587 <programlisting>protected SessionControl sc = null; 591 <programlisting language="java"> 592 protected SessionControl sc = null; 588 593 protected ParameterValues configuration = null; 589 594 protected ParameterValues job = null; … … 673 678 method 674 679 </title> 675 <programlisting>public void run(Request request, Response response, ProgressReporter progress) 680 <programlisting language="java"> 681 public void run(Request request, Response response, ProgressReporter progress) 676 682 { 677 683 // Open a connection to the database … … 725 731 method to null 726 732 </title> 727 <programlisting>/** 733 <programlisting language="java"> 734 /** 728 735 Clears the variables set by the init method. If a subclass 729 736 overrides this method it is recommended that it also calls super.done(). … … 843 850 <methodname>getGuiContexts</methodname> 844 851 </title> 845 <programlisting>// From the net.sf.basedb.plugins.RawDataFlatFileImporter plug-in 852 <programlisting language="java"> 853 // From the net.sf.basedb.plugins.RawDataFlatFileImporter plug-in 846 854 private static final Set<GuiContext> guiContexts = 847 855 Collections.singleton(new GuiContext(Item.RAWBIOASSAY, GuiContext.Type.ITEM)); … … 936 944 <methodname>isInContext</methodname> 937 945 </title> 938 <programlisting>/** 946 <programlisting language="java"> 947 /** 939 948 Returns null if the item is a {@link RawBioAssay} of the correct 940 949 {@link RawDataType} and doesn't already have spots. … … 1046 1055 from and if existing items should be updated or not 1047 1056 </title> 1048 <programlisting >// The complete request information 1057 <programlisting language="java"> 1058 // The complete request information 1049 1059 private RequestInformation configure Job; 1050 1060 … … 1122 1132 </para> 1123 1133 1124 <programlisting>StringParameterType stringPT = new StringParameterType(255, null, true); 1134 <programlisting language="java"> 1135 StringParameterType stringPT = new StringParameterType(255, null, true); 1125 1136 PluginParameter one = new PluginParameter("one", "One", "First string", stringPT); 1126 1137 PluginParameter two = new PluginParameter("two", "Two", "Second string", stringPT); 1127 // ... and so on</programlisting> 1138 // ... and so on 1139 </programlisting> 1128 1140 <para> 1129 1141 The … … 1232 1244 parameters page. 1233 1245 </para> 1234 <programlisting>PluginParameter firstSection = new PluginParameter(null, "First section", null, null); 1246 <programlisting language="java"> 1247 PluginParameter firstSection = new PluginParameter(null, "First section", null, null); 1235 1248 PluginParameter secondSection = new PluginParameter(null, "Second section", null, null); 1236 1249 // ... … … 1242 1255 parameters.add(secondSection); 1243 1256 parameters.add(firstParameterInSecondSection); 1244 parameters.add(secondParameteInSecondSection);</programlisting> 1257 parameters.add(secondParameteInSecondSection); 1258 </programlisting> 1245 1259 </listitem> 1246 1260 </varlistentry> … … 1311 1325 Configuration implementation building on the examples above 1312 1326 </title> 1313 <programlisting>public void configure(GuiContext context, Request request, Response response) 1327 <programlisting language="java"> 1328 public void configure(GuiContext context, Request request, Response response) 1314 1329 { 1315 1330 String command = request.getCommand(); … … 1773 1788 </parameter> 1774 1789 </simpara> 1775 <programlisting>// Plugin generate PluginParameter 1790 <programlisting language="java:nogutter"> 1791 // Plug-in generate PluginParameter 1776 1792 StringParameterType stringPT = new StringParameterType(255, null, true); 1777 1793 PluginParameter one = new PluginParameter("one", "One", "First string", stringPT); … … 1780 1796 // JSP should name fields as: 1781 1797 First string: <input type="text" name="parameter:one"><br> 1782 Second string: <input type="text" name="parameter:two"></programlisting> 1798 Second string: <input type="text" name="parameter:two"> 1799 </programlisting> 1783 1800 </listitem> 1784 1801 <listitem> … … 1790 1807 parameters as shown below. 1791 1808 </simpara> 1792 <programlisting><form action="index.jsp" method="post"> 1809 <programlisting language="xml"> 1810 <form action="index.jsp" method="post"> 1793 1811 <input type="hidden" name="ID" value="<%=ID%>"> 1794 1812 <input type="hidden" name="requestId" value="<%=request.getParameter("requestId")%>"> 1795 1813 <input type="hidden" name="cmd" value="SetParameters"> 1796 1814 ... 1797 </form></programlisting> 1815 </form> 1816 </programlisting> 1798 1817 <simpara> 1799 1818 The <varname>ID</varname> is the session ID for the logged … … 1824 1843 object created by your plug-in. 1825 1844 </para> 1826 <programlisting>// Get session control and its ID (required to post to index.jsp) 1845 <programlisting language="java"> 1846 // Get session control and its ID (required to post to index.jsp) 1827 1847 final SessionControl sc = Base.getExistingSessionControl(pageContext, true); 1828 1848 final String ID = sc.getId(); … … 1837 1857 PluginDefinition job = 1838 1858 (PluginDefinition)sc.getSessionSetting("plugin.configure.job"); 1839 RequestInformation ri = pcRequest.getRequestInformation();</programlisting> 1859 RequestInformation ri = pcRequest.getRequestInformation(); 1860 </programlisting> 1840 1861 1841 1862 </sect2> … … 1888 1909 by reading the headers from the input stream and checking if 1889 1910 it stopped at an unknown type of line or not: 1890 <programlisting >1911 <programlisting language="java"> 1891 1912 public final boolean isImportable(InputStream in) 1892 1913 throws BaseException … … 2078 2099 </para> 2079 2100 2080 <programlisting >2101 <programlisting language="java"> 2081 2102 // Parameter that maps the items name from a column 2082 2103 private PluginParameter<String> nameColumnMapping; … … 2167 2188 has a fixed format and doesn't use configurations. 2168 2189 </para> 2169 <programlisting >2190 <programlisting language="java"> 2170 2191 @Override 2171 2192 protected FlatFileParser getInitializedFlatFileParser() … … 2212 2233 </para> 2213 2234 2214 <programlisting >2235 <programlisting language="java"> 2215 2236 /** 2216 2237 Check that the file is a TAM or MwBr file. … … 2252 2273 <methodname>super.begin()</methodname> is always called. 2253 2274 </para> 2254 <programlisting >2275 <programlisting language="java"> 2255 2276 // Snippets from the RawDataFlatFileImporter class 2256 2277 private DbControl dc; … … 2302 2323 nothing. 2303 2324 </para> 2304 <programlisting >2325 <programlisting language="java"> 2305 2326 @Override 2306 2327 protected void handleHeader(Line line) … … 2356 2377 </para> 2357 2378 2358 <programlisting >2379 <programlisting language="java"> 2359 2380 private Mapper reporterMapper; 2360 2381 private Mapper blockMapper; … … 2374 2395 reporterMapper = getMapper(ffp, (String)configuration.getValue("reporterIdColumnMapping"), 2375 2396 cropStrings ? ReporterData.MAX_EXTERNAL_ID_LENGTH : null, nullMapper); 2376 blockMapper = getMapper(ffp, (String)configuration.getValue("blockColumnMapping"), null, nullMapper); 2377 columnMapper = getMapper(ffp, (String)configuration.getValue("columnColumnMapping"), null, nullMapper); 2378 rowMapper = getMapper(ffp, (String)configuration.getValue("rowColumnMapping"), null, nullMapper); 2397 blockMapper = getMapper(ffp, (String)configuration.getValue("blockColumnMapping"), 2398 null, nullMapper); 2399 columnMapper = getMapper(ffp, (String)configuration.getValue("columnColumnMapping"), 2400 null, nullMapper); 2401 rowMapper = getMapper(ffp, (String)configuration.getValue("rowColumnMapping"), 2402 null, nullMapper); 2379 2403 // ... more mappers: metaGrid coordinate, X-Y coordinate, extended properties 2380 2404 // ... … … 2404 2428 </para> 2405 2429 2406 <programlisting >2430 <programlisting language="java"> 2407 2431 // Snippets from the RawDataFlatFileImporter class 2408 2432 @Override … … 2453 2477 </para> 2454 2478 2455 <programlisting >2479 <programlisting language="java"> 2456 2480 @Override 2457 2481 protected void end(boolean success) … … 2501 2525 message will be generated. 2502 2526 </para> 2503 <programlisting >2527 <programlisting language="java"> 2504 2528 @Override 2505 2529 protected String getSuccessMessage() … … 2734 2758 Your plug-in should extend the <classname>AbstractExporterPlugin</classname> 2735 2759 class: 2736 <programlisting >2760 <programlisting language="java"> 2737 2761 public class HelpExporter 2738 2762 extends AbstractExporterPlugin … … 2755 2779 required parameter. 2756 2780 2757 <programlisting >2781 <programlisting language="java"> 2758 2782 // Selected parts of the getRequestConfiguration() method 2759 2783 ... … … 2795 2819 method. 2796 2820 2797 <programlisting >2821 <programlisting language="java"> 2798 2822 // Selected parts from the configure() method 2799 2823 if (request.getParameterValue(SAVE_AS) == null) … … 2896 2920 </para> 2897 2921 2898 <programlisting >2922 <programlisting language="java"> 2899 2923 private static final Set<GuiContext> guiContexts = 2900 2924 Collections.singleton(new GuiContext(Item.BIOASSAYSET, GuiContext.Type.ITEM)); … … 2914 2938 </para> 2915 2939 2916 <programlisting >2940 <programlisting language="java"> 2917 2941 public boolean isInContext(GuiContext context, Object item) 2918 2942 { … … 2948 2972 </para> 2949 2973 2950 <programlisting >2974 <programlisting language="java"> 2951 2975 private static final RequestInformation configurePlugin; 2952 2976 private RequestInformation configureJob; … … 2999 3023 </para> 3000 3024 3001 <programlisting >3025 <programlisting language="java"> 3002 3026 public void configure(GuiContext context, Request request, Response response) 3003 3027 { … … 3043 3067 </para> 3044 3068 3045 <programlisting >3069 <programlisting language="java"> 3046 3070 public void run(Request request, Response response, ProgressReporter progress) 3047 3071 { -
trunk/lib/docbook/custom-styles/docbook/plain/xsl/customized.chunked.xsl
r3715 r3838 139 139 </xsl:template> 140 140 141 <xsl:template name="script"> 142 <xsl:param name="src"></xsl:param> 143 <script> 144 <xsl:attribute name="language">JavaScript</xsl:attribute> 145 <xsl:attribute name="type">text/javascript</xsl:attribute> 146 <xsl:attribute name="src"><xsl:value-of select="$src" /></xsl:attribute> 147 </script> 148 </xsl:template> 149 150 <xsl:template name="user.head.content"> 151 <xsl:variable name="pathtorootdir"> 152 <xsl:call-template name="pathtorootdir" /> 153 </xsl:variable> 154 <link rel="stylesheet" 155 type="text/css" 156 href="{concat($pathtorootdir, 'css/SyntaxHighlighter.css')}"> 157 </link> 158 <xsl:call-template name="script"> 159 <xsl:with-param name="src" select="concat($pathtorootdir, 'script/shCore.js')" /> 160 </xsl:call-template> 161 <xsl:call-template name="script"> 162 <xsl:with-param name="src" select="concat($pathtorootdir, 'script/shBrushJava.js')" /> 163 </xsl:call-template> 164 <xsl:call-template name="script"> 165 <xsl:with-param name="src" select="concat($pathtorootdir, 'script/shBrushXml.js')" /> 166 </xsl:call-template> 167 <xsl:call-template name="script"> 168 <xsl:with-param name="src" select="concat($pathtorootdir, 'script/shBrushSql.js')" /> 169 </xsl:call-template> 170 </xsl:template> 171 172 <xsl:template name="body.attributes"> 173 <xsl:attribute name="onLoad">dp.SyntaxHighlighter.HighlightAll('pre', 'programlisting', null, false);</xsl:attribute> 174 </xsl:template> 175 141 176 <xsl:template name="user.footer.navigation"> 177 <table width="100%"> 178 <tr valign="bottom"><td> 142 179 <div 143 180 class="navfooter" … … 153 190 </i></p> 154 191 </div> 192 </td> 193 <td> 194 <div class="navfooter" align="right"> 195 <i> 196 Syntax coloring provided by <a href="http://www.dreamprojections.com/syntaxhighlighter">dp.SyntaxHighlighter</a> 197 </i> 198 </div> 199 </td> 200 </tr> 201 </table> 155 202 </xsl:template> 156 203 -
trunk/lib/docbook/docbook/xsl/html/verbatim.xsl
r3283 r3838 61 61 <xsl:otherwise> 62 62 <pre> 63 <xsl:if test="@language != ''"> 64 <xsl:attribute name="language"><xsl:value-of select="@language" /></xsl:attribute> 65 </xsl:if> 63 66 <xsl:apply-templates select="." mode="class.attribute"/> 64 67 <xsl:call-template name="apply-highlighting"/>
Note: See TracChangeset
for help on using the changeset viewer.