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/OseeAttributeComponent.java')
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeAttributeComponent.java18
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeAttributeComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeAttributeComponent.java
index 3cce22ce1b5..1427df0bfc2 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeAttributeComponent.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeAttributeComponent.java
@@ -15,12 +15,9 @@ import java.util.ArrayList;
import java.util.Collection;
import org.eclipse.osee.display.api.components.AttributeComponent;
import org.eclipse.osee.display.view.web.CssConstants;
-import com.vaadin.Application;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
-import com.vaadin.ui.Window;
-import com.vaadin.ui.Window.Notification;
/**
* @author Shawn F. Cook
@@ -107,18 +104,9 @@ public class OseeAttributeComponent extends VerticalLayout implements AttributeC
}
@Override
- public void setErrorMessage(String message) {
- 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("OseeAttributeComponent.setErrorMessage - ERROR: Application.getMainWindow() returns null value.");
- }
- } else {
- System.out.println("OseeAttributeComponent.setErrorMessage - ERROR: getApplication() returns null value.");
- }
+ public void setErrorMessage(String shortMsg, String longMsg, MsgType msgType) {
+ OseeExceptionDialogComponent dlg =
+ new OseeExceptionDialogComponent(msgType, shortMsg, longMsg, getApplication().getMainWindow());
}
@Override

Back to the top