@@ -0,0 +1,2188 @@
+/*%0A * Copyright 2017 SciJava.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage net.imagej.notebook.converter;%0A%0Aimport net.imagej.table.Table;%0Aimport org.scijava.Priority;%0Aimport org.scijava.convert.Converter;%0Aimport org.scijava.notebook.converter.NotebookOutputConverter;%0Aimport org.scijava.notebook.converter.ouput.HTMLNotebookOutput;%0Aimport org.scijava.plugin.Plugin;%0A%0A@Plugin(type = Converter.class, priority = Priority.LOW_PRIORITY)%0Apublic class TableToHTMLNotebookConverter%3CO extends Table%3E%0A        extends NotebookOutputConverter%3CO, HTMLNotebookOutput%3E %7B%0A%0A    @Override%0A    public Class getInputType() %7B%0A        return Table.class;%0A    %7D%0A%0A    @Override%0A    public Class getOutputType() %7B%0A        return HTMLNotebookOutput.class;%0A    %7D%0A%0A    @Override%0A    public HTMLNotebookOutput convert(Object object) %7B%0A%0A        Table table = (Table) object;%0A%0A        String htmlString = %22%3Ctable%3E%22;%0A%0A        // Set column headers%0A        htmlString += %22%3Ctr%3E%22;%0A        for (int i = 0; i %3C table.getColumnCount(); i++) %7B%0A            htmlString += %22%3Cth%3E%22;%0A            htmlString += table.getColumnHeader(i);%0A            htmlString += %22%3C/th%3E%22;%0A        %7D%0A        htmlString += %22%3C/tr%3E%22;%0A%0A        // Append the rows%0A        for (int i = 0; i %3C table.getRowCount(); i++) %7B%0A            htmlString += %22%3Ctr%3E%22;%0A            for (int j = 0; j %3C table.getColumnCount(); j++) %7B%0A                htmlString += %22%3Ctd%3E%22;%0A                htmlString += table.get(j, i);%0A                htmlString += %22%3C/td%3E%22;%0A            %7D%0A            htmlString += %22%3C/tr%3E%22;%0A        %7D%0A%0A        htmlString += %22%3C/table%3E%22;%0A%0A        return new HTMLNotebookOutput(HTMLNotebookOutput.getMimeType(), htmlString);%0A    %7D%0A%0A%7D%0A

Add TableToHTMLNotebookConverter