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.java15
1 files changed, 14 insertions, 1 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 c0f306cb6bb..36407135780 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
@@ -17,12 +17,15 @@ import org.eclipse.osee.display.api.search.SearchNavigator;
import org.eclipse.osee.display.api.search.SearchPresenter;
import org.eclipse.osee.display.view.web.CssConstants;
import org.eclipse.osee.display.view.web.OseeUiApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.ListSelect;
import com.vaadin.ui.VerticalLayout;
+import com.vaadin.ui.Window;
+import com.vaadin.ui.Window.Notification;
/**
* @author Shawn F. Cook
@@ -177,6 +180,16 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
@Override
public void setErrorMessage(String message) {
- //TODO:
+ Application app = this.getApplication();
+ if (app != null) {
+ Window mainWindow = app.getMainWindow();
+ if (mainWindow != null) {
+ mainWindow.showNotification(message, Notification.TYPE_ERROR_MESSAGE);
+ } else {
+ System.out.println("OseeRelationsComponent.setErrorMessage - ERROR: Application.getMainWindow() returns null value.");
+ }
+ } else {
+ System.out.println("OseeRelationsComponent.setErrorMessage - ERROR: getApplication() returns null value.");
+ }
}
}

Back to the top