Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java')
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java
index 091630dd452..b44454c97d8 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java
@@ -82,7 +82,9 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
presenter.selectRelationType(artifact, relationType, OseeRelationsComponent.this);
}
} catch (Exception e) {
- System.out.println("OseeRelationsComponent.createLayout - CRITICAL ERROR: (WebArtifact) relationsListSelect.getValue() threw an exception.");
+ ComponentUtility.logError(
+ "OseeRelationsComponent.createLayout - CRITICAL ERROR: (WebArtifact) relationsListSelect.getValue() threw an exception.",
+ OseeRelationsComponent.this);
}
}
}
@@ -96,7 +98,9 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
ViewArtifact artifact = (ViewArtifact) leftSelect.getValue();
handleValue(artifact);
} catch (Exception e) {
- System.out.println("OseeRelationsComponent.createLayout - CRITICAL ERROR: (WebArtifact) relationsListSelect.getValue() threw an exception.");
+ ComponentUtility.logError(
+ "OseeRelationsComponent.createLayout - CRITICAL ERROR: (WebArtifact) relationsListSelect.getValue() threw an exception.",
+ OseeRelationsComponent.this);
}
}
}
@@ -110,7 +114,9 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
ViewArtifact artifact = (ViewArtifact) rightSelect.getValue();
handleValue(artifact);
} catch (Exception e) {
- System.out.println("OseeRelationsComponent.createLayout - CRITICAL ERROR: (WebArtifact) relationsListSelect.getValue() threw an exception.");
+ ComponentUtility.logError(
+ "OseeRelationsComponent.createLayout - CRITICAL ERROR: (WebArtifact) relationsListSelect.getValue() threw an exception.",
+ OseeRelationsComponent.this);
}
}
}
@@ -169,6 +175,8 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
SearchPresenter<?, ?> presenter = ComponentUtility.getPresenter(OseeRelationsComponent.this);
SearchNavigator navigator = ComponentUtility.getNavigator(OseeRelationsComponent.this);
presenter.selectArtifact(url, artifact, navigator);
+ } else {
+ ComponentUtility.logWarn("OseeRelationsComponent.handleValue - WARNING: null value detected.", this);
}
}

Back to the top