Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2018-09-06 13:33:10 -0400
committerDonald Dunne2018-09-11 12:47:53 -0400
commited8a5b3032d42067d63267f639a7a571f74e6c76 (patch)
tree0059ad9895696431e29cfb738c0f8a0966cba12d
parent9a1748004f054e7ed4339edcd4077ec4ac7259e8 (diff)
downloadorg.eclipse.osee-ed8a5b3032d42067d63267f639a7a571f74e6c76.tar.gz
org.eclipse.osee-ed8a5b3032d42067d63267f639a7a571f74e6c76.tar.xz
org.eclipse.osee-ed8a5b3032d42067d63267f639a7a571f74e6c76.zip
refactor: Add convenient writeEmptyCell to ISheetWriter
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSheetWriter.java5
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/ISheetWriter.java2
2 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSheetWriter.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSheetWriter.java
index 5753d1d575..e074685c74 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSheetWriter.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSheetWriter.java
@@ -76,6 +76,11 @@ public abstract class AbstractSheetWriter implements ISheetWriter {
writeCell(cellData, implicitCellIndex);
}
+ @Override
+ public void writeEmptyCell() throws IOException {
+ writeCell(null);
+ }
+
protected abstract void startRow() throws IOException;
protected abstract void writeEndRow() throws IOException;
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/ISheetWriter.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/ISheetWriter.java
index e268f763bd..5d267bf108 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/ISheetWriter.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/ISheetWriter.java
@@ -37,6 +37,8 @@ public interface ISheetWriter {
*/
public void writeCell(Object cellData, int cellIndex) throws IOException;
+ public void writeEmptyCell() throws IOException;
+
public void endRow() throws IOException;
public void endWorkbook() throws IOException;

Back to the top