Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishSrs.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishSrs.java b/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishSrs.java
index 70fb93813e..d9ce681057 100644
--- a/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishSrs.java
+++ b/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishSrs.java
@@ -11,6 +11,8 @@
package org.eclipse.osee.define.blam.operation;
import java.io.FileInputStream;
+import java.util.LinkedList;
+
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.osee.framework.jdk.core.util.io.Streams;
import org.eclipse.osee.framework.ui.skynet.blam.BlamVariableMap;
@@ -29,9 +31,9 @@ public class PublishSrs extends AbstractBlam {
new String(Streams.getByteArray(new FileInputStream(variableMap.getString("Master Template"))), "UTF-8");
String slaveTemplate =
new String(Streams.getByteArray(new FileInputStream(variableMap.getString("Slave Template"))), "UTF-8");
-
+ boolean updateParagraphNumber = !variableMap.getValue((new LinkedList<Object>()).getClass(), "Update Paragraph Numbers").isEmpty();
WordTemplateProcessor processor = new WordTemplateProcessor(masterTemplate, slaveTemplate);
-
+ processor.setSaveParagraphNumOnArtifact(updateParagraphNumber);
variableMap.setValue("MasterFileName", "SRS");
processor.applyTemplate(FileSystemRenderer.ensureRenderFolderExists(PresentationType.PREVIEW), variableMap);
}
@@ -41,6 +43,6 @@ public class PublishSrs extends AbstractBlam {
* @see org.eclipse.osee.framework.ui.skynet.blam.operation.BlamOperation#getXWidgetXml()
*/
public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XText\" displayName=\"Master Template\" /><XWidget xwidgetType=\"XText\" displayName=\"Slave Template\" /><XWidget xwidgetType=\"XBranchListViewer\" displayName=\"Branch\" /></xWidgets>";
+ return "<xWidgets><XWidget xwidgetType=\"XText\" displayName=\"Master Template\" /><XWidget xwidgetType=\"XText\" displayName=\"Slave Template\" /><XWidget xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" displayName=\"Update Paragraph Numbers\" /><XWidget xwidgetType=\"XBranchListViewer\" displayName=\"Branch\" /></xWidgets>";
}
} \ No newline at end of file

Back to the top