Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VcpResultsFile.java')
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VcpResultsFile.java102
1 files changed, 51 insertions, 51 deletions
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VcpResultsFile.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VcpResultsFile.java
index 51d2d1c197d..c4969f53054 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VcpResultsFile.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/vcast/VcpResultsFile.java
@@ -8,8 +8,8 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.coverage.vcast;
-
+package org.eclipse.osee.coverage.vcast;
+
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
@@ -18,52 +18,52 @@ import java.util.regex.Pattern;
import org.eclipse.osee.coverage.internal.Activator;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.logging.OseeLog;
-
-/**
- * @author Donald G. Dunne
- */
-public class VcpResultsFile {
-
- private final Map<ResultsValue, String> resultsValues = new HashMap<ResultsValue, String>(20);
- Pattern valuePattern = Pattern.compile("(.*?):(.*?)$");
- private VcpResultsDatFile vcpResultsDatFile;
- private final String vcastDirectory;
-
- public static enum ResultsValue {
- FILENAME, DIRECTORY, DISPLAY_NAME, RESULT_TYPE, ADDITION_TIME, IS_SELECTED, HAD_COVERAGE_REMOVED
- };
-
- public VcpResultsFile(String vcastDirectory) {
- this.vcastDirectory = vcastDirectory;
- }
-
- public String getValue(ResultsValue resultsValue) {
- return resultsValues.get(resultsValue);
- }
-
- public void addLine(String line) {
- Matcher m = valuePattern.matcher(line);
- if (m.find()) {
- ResultsValue resultsValue = ResultsValue.valueOf(m.group(1));
- if (resultsValue == null) {
- OseeLog.log(Activator.class, Level.SEVERE, String.format("Unhandled VcpResultsFile value [%s]", m.group(1)));
- } else {
- resultsValues.put(resultsValue, m.group(2));
- }
- } else {
- OseeLog.log(Activator.class, Level.SEVERE, String.format("Unhandled VcpResultsFile line [%s]", line));
- }
- }
-
- public VcpResultsDatFile getVcpResultsDatFile() throws OseeCoreException {
- if (vcpResultsDatFile == null) {
- vcpResultsDatFile = new VcpResultsDatFile(vcastDirectory, this);
- }
- return vcpResultsDatFile;
- }
-
- @Override
- public String toString() {
- return getValue(ResultsValue.FILENAME);
- }
-}
+
+/**
+ * @author Donald G. Dunne
+ */
+public class VcpResultsFile {
+
+ private final Map<ResultsValue, String> resultsValues = new HashMap<ResultsValue, String>(20);
+ Pattern valuePattern = Pattern.compile("(.*?):(.*?)$");
+ private VcpResultsDatFile vcpResultsDatFile;
+ private final String vcastDirectory;
+
+ public static enum ResultsValue {
+ FILENAME, DIRECTORY, DISPLAY_NAME, RESULT_TYPE, ADDITION_TIME, IS_SELECTED, HAD_COVERAGE_REMOVED
+ };
+
+ public VcpResultsFile(String vcastDirectory) {
+ this.vcastDirectory = vcastDirectory;
+ }
+
+ public String getValue(ResultsValue resultsValue) {
+ return resultsValues.get(resultsValue);
+ }
+
+ public void addLine(String line) {
+ Matcher m = valuePattern.matcher(line);
+ if (m.find()) {
+ ResultsValue resultsValue = ResultsValue.valueOf(m.group(1));
+ if (resultsValue == null) {
+ OseeLog.log(Activator.class, Level.SEVERE, String.format("Unhandled VcpResultsFile value [%s]", m.group(1)));
+ } else {
+ resultsValues.put(resultsValue, m.group(2));
+ }
+ } else {
+ OseeLog.log(Activator.class, Level.SEVERE, String.format("Unhandled VcpResultsFile line [%s]", line));
+ }
+ }
+
+ public VcpResultsDatFile getVcpResultsDatFile() throws OseeCoreException {
+ if (vcpResultsDatFile == null) {
+ vcpResultsDatFile = new VcpResultsDatFile(vcastDirectory, this);
+ }
+ return vcpResultsDatFile;
+ }
+
+ @Override
+ public String toString() {
+ return getValue(ResultsValue.FILENAME);
+ }
+}

Back to the top