Commit fdd58691 authored by Stephan Kreutzer's avatar Stephan Kreutzer

change_tracking_text_editor_1 workflow added.

parent 47bedf5e
/* Copyright (C) 2016-2019 Stephan Kreutzer
*
* This file is part of change_tracking_text_editor_1 workflow, a submodule of the
* digital_publishing_workflow_tools package.
*
* change_tracking_text_editor_1 workflow is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 or any later version,
* as published by the Free Software Foundation.
*
* change_tracking_text_editor_1 workflow is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License 3 for more details.
*
* You should have received a copy of the GNU Affero General Public License 3
* along with change_tracking_text_editor_1 workflow. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file $/htx/workflows/change_tracking_text_editor/change_tracking_text_editor_1/InfoMessage.java
* @brief For normal messages during change_tracking_text_editor_1 workflow execution.
* @author Stephan Kreutzer
* @since 2016-01-31
*/
import java.util.TimeZone;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
class InfoMessage
{
public InfoMessage(String id,
Exception exception,
String message,
String bundle,
Object ... arguments)
{
this.id = id;
this.exception = exception;
this.message = message;
this.bundle = bundle;
this.arguments = arguments;
TimeZone timeZone = TimeZone.getTimeZone("UTC");
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
dateFormat.setTimeZone(timeZone);
this.timestamp = dateFormat.format(new Date());
}
public String getId()
{
return this.id;
}
public Exception getException()
{
return this.exception;
}
public String getMessage()
{
return this.message;
}
public String getBundle()
{
return this.bundle;
}
public Object[] getArguments()
{
return this.arguments;
}
public String getTimestamp()
{
return this.timestamp;
}
protected String id;
protected Exception exception;
protected String message;
protected String bundle;
protected Object[] arguments;
protected String timestamp;
}
/* Copyright (C) 2015-2019 Stephan Kreutzer
*
* This file is part of change_tracking_text_editor_1 workflow, a submodule of the
* digital_publishing_workflow_tools package.
*
* change_tracking_text_editor_1 workflow is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 or any later version,
* as published by the Free Software Foundation.
*
* change_tracking_text_editor_1 workflow is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License 3 for more details.
*
* You should have received a copy of the GNU Affero General Public License 3
* along with change_tracking_text_editor_1 workflow. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file $/htx/workflows/change_tracking_text_editor/change_tracking_text_editor_1/ProgramTerminationException.java
* @brief Handles error reporting and program termination for change_tracking_text_editor_1 workflow.
* @author Stephan Kreutzer
* @since 2015-11-14
*/
import java.util.TimeZone;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
class ProgramTerminationException extends RuntimeException
{
public ProgramTerminationException(String id,
Exception cause,
String message,
String bundle,
Object ... arguments)
{
super(message, cause);
this.id = id;
this.bundle = bundle;
this.arguments = arguments;
this.normalTermination = false;
TimeZone timeZone = TimeZone.getTimeZone("UTC");
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
dateFormat.setTimeZone(timeZone);
this.timestamp = dateFormat.format(new Date());
}
public String getId()
{
return this.id;
}
public String getBundle()
{
return this.bundle;
}
public Object[] getArguments()
{
return this.arguments;
}
public String getTimestamp()
{
return this.timestamp;
}
public boolean isNormalTermination()
{
return this.normalTermination;
}
public void setNormalTermination(boolean normalTermination)
{
this.normalTermination = normalTermination;
}
protected String id;
protected String bundle;
protected Object[] arguments;
protected String timestamp;
protected boolean normalTermination;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2014-2019 Stephan Kreutzer
This file is part of change_tracking_text_editor_1 workflow, a submodule of the
digital_publishing_workflow_tools package.
change_tracking_text_editor_1 workflow is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 or any later version,
as published by the Free Software Foundation.
change_tracking_text_editor_1 workflow is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License 3 for more details.
You should have received a copy of the GNU Affero General Public License 3
along with change_tracking_text_editor_1 workflow. If not, see <http://www.gnu.org/licenses/>.
-->
<change-tracking-text-editor-1-workflow-jobfile>
<!--output-directory path="./output/"/-->
<!--output-directory-selection-start-directory path="."/-->
<!--input-file path="./input.txt"/-->
<!--input-file-selection-start-directory path="."/-->
<input-file-selection-file-type extension="xml">Text History File (.xml)</input-file-selection-file-type>
<!--font-size point="16"/-->
<!--autosave characters="20"/-->
<!--temp-directory path="./temp/"/-->
</change-tracking-text-editor-1-workflow-jobfile>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2015-2019 Stephan Kreutzer
This file is part of change_tracking_text_editor_1 workflow, a submodule of the
digital_publishing_workflow_tools package.
change_tracking_text_editor_1 workflow is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 or any later version,
as published by the Free Software Foundation.
change_tracking_text_editor_1 workflow is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License 3 for more details.
You should have received a copy of the GNU Affero General Public License 3
along with change_tracking_text_editor_1 workflow. If not, see <http://www.gnu.org/licenses/>.
-->
<option-picker-1-jobfile>
<title>Choose Action</title>
<options>
<option id="new-text">
<caption>Start New Text</caption>
<description>Start to write a new text from scratch.</description>
</option>
<option id="existing-text">
<caption>Edit Existing Text</caption>
<description>Make changes to an already existing text.</description>
</option>
</options>
</option-picker-1-jobfile>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2015-2019 Stephan Kreutzer
This file is part of change_tracking_text_editor_1 workflow, a submodule of the
digital_publishing_workflow_tools package.
change_tracking_text_editor_1 workflow is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 or any later version,
as published by the Free Software Foundation.
change_tracking_text_editor_1 workflow is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License 3 for more details.
You should have received a copy of the GNU Affero General Public License 3
along with change_tracking_text_editor_1 workflow. If not, see <http://www.gnu.org/licenses/>.
-->
<option-picker-1-jobfile>
<title>Aktion wählen</title>
<options>
<option id="new-text">
<caption>Neuen Text beginnen</caption>
<description>Einen neuen Text beginnen.</description>
</option>
<option id="existing-text">
<caption>Bestehenden Text edieren</caption>
<description>Änderungen an einem bereits bestehenden Text vornehmen.</description>
</option>
</options>
</option-picker-1-jobfile>
# Copyright (C) 2014-2019 Stephan Kreutzer
#
# This file is part of change_tracking_text_editor_1 workflow, a submodule of the
# digital_publishing_workflow_tools package.
#
# change_tracking_text_editor_1 workflow is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3 or any later version,
# as published by the Free Software Foundation.
#
# change_tracking_text_editor_1 workflow is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with change_tracking_text_editor_1 workflow. If not, see <http://www.gnu.org/licenses/>.
.PHONY: all change_tracking_text_editor_1 clean
all: change_tracking_text_editor_1
change_tracking_text_editor_1: change_tracking_text_editor_1.class
change_tracking_text_editor_1.class: change_tracking_text_editor_1.java InfoMessage.class ProgramTerminationException.class
javac -encoding UTF-8 change_tracking_text_editor_1.java
InfoMessage.class: InfoMessage.java
javac -encoding UTF-8 InfoMessage.java
ProgramTerminationException.class: ProgramTerminationException.java
javac -encoding UTF-8 ProgramTerminationException.java
clean:
rm -f change_tracking_text_editor_1.class
rm -f ProgramTerminationException.class
rm -f InfoMessage.class
# Copyright (C) 2014-2019 Stephan Kreutzer
#
# This file is part of digital_publishing_workflow_tools.
#
# digital_publishing_workflow_tools is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3 or any later version,
# as published by the Free Software Foundation.
#
# digital_publishing_workflow_tools is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with digital_publishing_workflow_tools. If not, see <http://www.gnu.org/licenses/>.
directories = ./change_tracking_text_editor_1
.PHONY: all $(directories)
all: $(directories)
$(directories):
$(MAKE) --directory=$@
# Copyright (C) 2014-2017 Stephan Kreutzer
# Copyright (C) 2014-2019 Stephan Kreutzer
#
# This file is part of digital_publishing_workflow_tools.
#
......@@ -16,7 +16,7 @@
directories = ./edl_fulfiller ./edl_to_resource_retriever_1_jobfile ./text_position_retriever
directories = ./change_tracking_text_editor ./edl_fulfiller ./edl_to_resource_retriever_1_jobfile ./text_position_retriever
......
......@@ -79,7 +79,7 @@ messageFilePicker1OutputDirectoryJobFileExistsButIsntWritable = Die file_picker_
messageFilePicker1OutputDirectoryJobPathExistsButIsntAFile = Der file_picker_1-Jobdateipfad "{0}" existiert bereits, ist aber keine Datei.
messageFilePicker1OutputDirectoryResultInfoFileExistsButIsntWritable = Die file_picker_1-Ergebnisinformationsdatei "{0}" existiert bereits, ist aber nicht überschreibbar.
messageFilePicker1OutputDirectoryResultInfoPathExistsButIsntAFile = Der file_picker_1-Ergebnisinformationspfad "{0}" existiert, ist aber keine Datei.
windowTitleSelectOutputDirectory = Zieltext-Eingabedatei wählen
windowTitleSelectOutputDirectory = Ausgabeverzeichnis wählen
messageFilePicker1OutputDirectoryJobFileWritingError = Es ist ein Fehler aufgetreten beim Schreiben der file_picker_1-Jobdatei "{0}".
messageFilePicker1OutputDirectoryErrorWhileReadingOutput = Es ist ein Fehler aufgetreten beim Auslesen der Ausgabe von file_picker_1.
messageFilePicker1OutputDirectoryResultInfoFileDoesntExistButShould = Die file_picker_1-Ergebnisinformationsdatei "{0}" existiert nicht, sollte sie aber inzwischen.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment