summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshawn.f.cook2011-10-27 19:12:46 (EDT)
committerRoberto E. Escobar2011-10-27 19:12:46 (EDT)
commit8cae599d25fb8cfeba5bcb607670a29bff2f5069 (patch)
tree1a8349ef2c42f604ed35679d7ec1b5a89c3159be
parentc6d7bf058045259a6feffa9d5651d123b16c4b88 (diff)
downloadorg.eclipse.osee-8cae599d25fb8cfeba5bcb607670a29bff2f5069.zip
org.eclipse.osee-8cae599d25fb8cfeba5bcb607670a29bff2f5069.tar.gz
org.eclipse.osee-8cae599d25fb8cfeba5bcb607670a29bff2f5069.tar.bz2
feature[ats_E6W8N]: Implement logger in web ui.
-rw-r--r--plugins/org.eclipse.osee.ats.view.web/META-INF/MANIFEST.MF3
-rw-r--r--plugins/org.eclipse.osee.ats.view.web/OSGI-INF/ats.ui.app.factory.xml1
-rw-r--r--plugins/org.eclipse.osee.ats.view.web/build.properties3
-rw-r--r--plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplication.java27
-rw-r--r--plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplicationFactory.java8
-rw-r--r--plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsWindowFactory.java2
-rw-r--r--plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/components/AtsSearchHeaderImpl.java29
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/HasLogger.java24
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/ComponentUtility.java29
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java2
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java5
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java4
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java14
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultComponent.java2
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java4
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/search/OseeArtifactView.java3
-rw-r--r--plugins/org.eclipse.osee.support.config/launchConfig/UI.launch2
17 files changed, 129 insertions, 33 deletions
diff --git a/plugins/org.eclipse.osee.ats.view.web/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.ats.view.web/META-INF/MANIFEST.MF
index f363c14..d23c012 100644
--- a/plugins/org.eclipse.osee.ats.view.web/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.ats.view.web/META-INF/MANIFEST.MF
@@ -11,7 +11,8 @@ Require-Bundle: com.vaadin,
org.eclipse.osee.display.view.web,
org.eclipse.osee.vaadin,
org.eclipse.osee.ats.api,
- org.eclipse.osee.display.api
+ org.eclipse.osee.display.api,
+ org.eclipse.osee.logger
Import-Package: org.eclipse.osee.ats.api.components,
org.eclipse.osee.framework.core.data,
org.eclipse.osee.orcs,
diff --git a/plugins/org.eclipse.osee.ats.view.web/OSGI-INF/ats.ui.app.factory.xml b/plugins/org.eclipse.osee.ats.view.web/OSGI-INF/ats.ui.app.factory.xml
index eba1b46..9b9a91d 100644
--- a/plugins/org.eclipse.osee.ats.view.web/OSGI-INF/ats.ui.app.factory.xml
+++ b/plugins/org.eclipse.osee.ats.view.web/OSGI-INF/ats.ui.app.factory.xml
@@ -5,5 +5,6 @@
<service>
<provide interface="org.eclipse.osee.vaadin.ApplicationFactory"/>
</service>
+ <reference bind="setLogger" cardinality="1..1" interface="org.eclipse.osee.logger.Log" name="Log" policy="static"/>
<reference bind="setPresenterFactory" cardinality="1..1" interface="org.eclipse.osee.ats.api.search.AtsPresenterFactory" name="AtsPresenterFactory" policy="static"/>
</scr:component>
diff --git a/plugins/org.eclipse.osee.ats.view.web/build.properties b/plugins/org.eclipse.osee.ats.view.web/build.properties
index 1d0b34f..e4ace4f 100644
--- a/plugins/org.eclipse.osee.ats.view.web/build.properties
+++ b/plugins/org.eclipse.osee.ats.view.web/build.properties
@@ -9,4 +9,5 @@ additional.bundles = com.vaadin,\
org.eclipse.osee.vaadin,\
org.eclipse.osee.ats.api,\
org.eclipse.osee.display.api,\
- org.eclipse.osee.orcs
+ org.eclipse.osee.orcs,\
+ org.eclipse.osee.logger
diff --git a/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplication.java b/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplication.java
index eb5b98d1..82ec2c0 100644
--- a/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplication.java
+++ b/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplication.java
@@ -13,9 +13,11 @@ package org.eclipse.osee.ats.view.web;
import org.eclipse.osee.ats.api.components.AtsSearchHeaderComponent;
import org.eclipse.osee.ats.api.data.AtsSearchParameters;
import org.eclipse.osee.ats.api.search.AtsSearchPresenter;
+import org.eclipse.osee.display.view.web.HasLogger;
import org.eclipse.osee.display.view.web.HasNavigator;
import org.eclipse.osee.display.view.web.HasPresenter;
import org.eclipse.osee.display.view.web.HasUrl;
+import org.eclipse.osee.logger.Log;
import org.eclipse.osee.vaadin.widgets.HasViews;
import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;
@@ -26,14 +28,16 @@ import com.vaadin.ui.Window;
* @author Shawn F. Cook
*/
@SuppressWarnings("serial")
-public class AtsUiApplication<T extends AtsSearchHeaderComponent, K extends AtsSearchParameters> extends Application implements HasUrl, HasNavigator, HasPresenter {
+public class AtsUiApplication<T extends AtsSearchHeaderComponent, K extends AtsSearchParameters> extends Application implements HasUrl, HasNavigator, HasPresenter, HasLogger {
private final AtsSearchPresenter<T, K> atsSearchPresenter;
private AtsNavigator navigator;
private String url = "";
+ private final Log logger;
- public AtsUiApplication(AtsSearchPresenter<T, K> searchPresenter) {
+ public AtsUiApplication(AtsSearchPresenter<T, K> searchPresenter, Log logger) {
this.atsSearchPresenter = searchPresenter;
+ this.logger = logger;
}
@Override
@@ -76,4 +80,23 @@ public class AtsUiApplication<T extends AtsSearchHeaderComponent, K extends AtsS
return bundle.getVersion().toString();
}
+ @Override
+ public void logError(String format, Object... args) {
+ logger.error(format, args);
+ }
+
+ @Override
+ public void logWarn(String format, Object... args) {
+ logger.warn(format, args);
+ }
+
+ @Override
+ public void logInfo(String format, Object... args) {
+ logger.info(format, args);
+ }
+
+ @Override
+ public void logDebug(String format, Object... args) {
+ logger.debug(format, args);
+ }
}
diff --git a/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplicationFactory.java b/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplicationFactory.java
index b930af2..1d86968 100644
--- a/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplicationFactory.java
+++ b/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsUiApplicationFactory.java
@@ -14,6 +14,7 @@ import org.eclipse.osee.ats.api.components.AtsSearchHeaderComponent;
import org.eclipse.osee.ats.api.data.AtsSearchParameters;
import org.eclipse.osee.ats.api.search.AtsPresenterFactory;
import org.eclipse.osee.ats.api.search.AtsSearchPresenter;
+import org.eclipse.osee.logger.Log;
import org.eclipse.osee.orcs.ApplicationContext;
import org.eclipse.osee.vaadin.ApplicationFactory;
import com.vaadin.Application;
@@ -24,6 +25,7 @@ import com.vaadin.Application;
public class AtsUiApplicationFactory implements ApplicationFactory {
private AtsPresenterFactory<AtsSearchHeaderComponent, AtsSearchParameters> presenterFactory;
+ private Log logger;
@Override
public Application createInstance() {
@@ -33,7 +35,7 @@ public class AtsUiApplicationFactory implements ApplicationFactory {
presenterFactory.createInstance(context);
AtsUiApplication<AtsSearchHeaderComponent, AtsSearchParameters> application =
- new AtsUiApplication<AtsSearchHeaderComponent, AtsSearchParameters>(searchPresenter);
+ new AtsUiApplication<AtsSearchHeaderComponent, AtsSearchParameters>(searchPresenter, logger);
// TODO attach context
context.setUser(application.getUser());
@@ -49,6 +51,10 @@ public class AtsUiApplicationFactory implements ApplicationFactory {
this.presenterFactory = presenterFactory;
}
+ public void setLogger(Log logger) {
+ this.logger = logger;
+ }
+
private final class AtsApplicationContext implements ApplicationContext {
private Object user;
diff --git a/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsWindowFactory.java b/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsWindowFactory.java
index 70a1c69..8931925 100644
--- a/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsWindowFactory.java
+++ b/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/AtsWindowFactory.java
@@ -28,7 +28,7 @@ import com.vaadin.ui.Window;
*/
public class AtsWindowFactory {
- public Window createNavigatableWindow(HasViews provider, AtsNavigator navigator) {
+ public Window createNavigatableWindow(HasViews provider, final AtsNavigator navigator) {
VerticalLayout layout = new VerticalLayout();
final Window w = new Window("OSEE", layout);
diff --git a/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/components/AtsSearchHeaderImpl.java b/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/components/AtsSearchHeaderImpl.java
index 6b058e5..efb1add 100644
--- a/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/components/AtsSearchHeaderImpl.java
+++ b/plugins/org.eclipse.osee.ats.view.web/src/org/eclipse/osee/ats/view/web/components/AtsSearchHeaderImpl.java
@@ -69,6 +69,8 @@ public class AtsSearchHeaderImpl extends OseeSearchHeaderComponent implements At
AtsSearchPresenter searchPresenter = getPresenter();
if (searchPresenter != null && searchPresenter instanceof SearchProgressProvider) {
((SearchProgressProvider) searchPresenter).addListener(this);
+ } else {
+ ComponentUtility.logWarn("AtsSearchHeaderImpl.attach() Invalid searchPresenter", this);
}
createLayout();
}
@@ -133,7 +135,7 @@ public class AtsSearchHeaderImpl extends OseeSearchHeaderComponent implements At
AtsSearchParameters params = new AtsSearchParameters(searchPhrase, nameOnly, build, program);
getPresenter().selectSearch(getRequestedDataId(), params, getNavigator());
} else {
- System.out.println("AtsSearchHeaderComponent.selectSearch - WARNING: null value detected.");
+ ComponentUtility.logWarn("AtsSearchHeaderComponent.selectSearch - WARNING: null value detected.", this);
}
} else if (searchButton.getCaption().equals(SEARCHBUTTON_CANCEL)) {
getPresenter().selectCancel();
@@ -230,26 +232,7 @@ public class AtsSearchHeaderImpl extends OseeSearchHeaderComponent implements At
hLayout_ProgBuildName.setComponentAlignment(buildCombo, Alignment.MIDDLE_CENTER);
hLayout_ProgBuildName.setComponentAlignment(nameOnlyCheckBox, Alignment.BOTTOM_RIGHT);
- // hLayout_SearchTextBtn.setComponentAlignment(searchTextField, Alignment.MIDDLE_LEFT);
hLayout_SearchTextBtn.setComponentAlignment(searchButton, Alignment.MIDDLE_RIGHT);
-
- //DEBUGGING
- // Thread thread = new Thread(new Runnable() {
- // private int i = 0;
- //
- // @Override
- // public void run() {
- // while (true) {
- // nameOnlyCheckBox.setCaption(String.format("%d", i++));
- // try {
- // Thread.sleep(100);
- // } catch (InterruptedException ex) {
- // break;
- // }
- // }
- // }
- // }, "thread_debugging");
- // thread.start();
}
@Override
@@ -292,6 +275,8 @@ public class AtsSearchHeaderImpl extends OseeSearchHeaderComponent implements At
if (ComponentUtility.isAccessible(searchTextField)) {
searchTextField.setValue(params.getSearchString());
}
+ } else {
+ ComponentUtility.logWarn("AtsSearchHeaderComponent.setSearchCriteria - WARNING: null value detected.", this);
}
}
@@ -392,7 +377,9 @@ public class AtsSearchHeaderImpl extends OseeSearchHeaderComponent implements At
try {
Thread.sleep(500);
} catch (InterruptedException ex) {
- System.out.println("???");
+ ComponentUtility.logWarn(
+ "AtsSearchHeaderComponent.searchInProgress.Runnable.run - WARNING: InterruptedException.",
+ AtsSearchHeaderImpl.this);
break;
}
}
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/HasLogger.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/HasLogger.java
new file mode 100644
index 0000000..f101065
--- /dev/null
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/HasLogger.java
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.display.view.web;
+
+/**
+ * @author Shawn F. Cook
+ */
+public interface HasLogger {
+ public void logError(String format, Object... args);
+
+ public void logWarn(String format, Object... args);
+
+ public void logInfo(String format, Object... args);
+
+ public void logDebug(String format, Object... args);
+}
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/ComponentUtility.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/ComponentUtility.java
index 6930e78..3440d67 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/ComponentUtility.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/ComponentUtility.java
@@ -12,6 +12,7 @@ package org.eclipse.osee.display.view.web.components;
import org.eclipse.osee.display.api.search.SearchNavigator;
import org.eclipse.osee.display.api.search.SearchPresenter;
+import org.eclipse.osee.display.view.web.HasLogger;
import org.eclipse.osee.display.view.web.HasNavigator;
import org.eclipse.osee.display.view.web.HasPresenter;
import org.eclipse.osee.display.view.web.HasUrl;
@@ -86,4 +87,32 @@ public final class ComponentUtility {
}
return presenter;
}
+
+ public static void logError(String format, Component component, Object... args) {
+ Application app = component.getApplication();
+ if (app instanceof HasLogger) {
+ ((HasLogger) app).logError(format, args);
+ }
+ }
+
+ public static void logWarn(String format, Component component, Object... args) {
+ Application app = component.getApplication();
+ if (app instanceof HasLogger) {
+ ((HasLogger) app).logWarn(format, args);
+ }
+ }
+
+ public static void logInfo(String format, Component component, Object... args) {
+ Application app = component.getApplication();
+ if (app instanceof HasLogger) {
+ ((HasLogger) app).logInfo(format, args);
+ }
+ }
+
+ public static void logDebug(String format, Component component, Object... args) {
+ Application app = component.getApplication();
+ if (app instanceof HasLogger) {
+ ((HasLogger) app).logDebug(format, args);
+ }
+ }
}
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java
index afa603f..8af6c9b 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeBreadcrumbComponent.java
@@ -51,6 +51,8 @@ public class OseeBreadcrumbComponent extends HorizontalLayout {
}
}
}
+ } else {
+ ComponentUtility.logWarn("OseeBreadcrumbComponent.createLayout - WARNING: null value detected.", this);
}
}
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java
index 8dca72a..afbe47b 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java
@@ -64,6 +64,9 @@ public class OseeDisplayOptionsComponentImpl extends VerticalLayout implements D
if (showVerbose_fromUi != showVerbose_fromPres) {
showVerboseCheckBox.setValue(showVerbose_fromPres);
}
+ } else {
+ ComponentUtility.logWarn("OseeDisplayOptionsComponentImpl.setDisplayOptions - WARNING: null value detected.",
+ this);
}
}
@@ -76,7 +79,7 @@ public class OseeDisplayOptionsComponentImpl extends VerticalLayout implements D
if (presenter != null) {
presenter.selectDisplayOptions(url, options, navigator);
} else {
- System.out.println("Presenter was null");
+ ComponentUtility.logWarn("OseeDisplayOptionsComponentImpl.onBoxChecked - WARNING: null value detected.", this);
}
}
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java
index faa4def..802c7f0 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java
@@ -53,6 +53,8 @@ public class OseeExceptionDialogComponent extends Window {
msgTypeLabel.setStyleName(CssConstants.OSEE_EXCEPTION_WARNING_TITLE_TEXT);
break;
default:
+ ComponentUtility.logWarn("OseeExceptionDialogComponent.[ctor] - WARNING: invalid or unhandled msgType.",
+ this);
break;
}
@@ -63,6 +65,8 @@ public class OseeExceptionDialogComponent extends Window {
mainWindow.addWindow(this);
moveToCenter();
focus();
+ } else {
+ ComponentUtility.logWarn("OseeExceptionDialogComponent.[ctor] - WARNING: null value detected.", this);
}
}
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 091630d..b44454c 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);
}
}
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultComponent.java
index d60a87e..6c44143 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultComponent.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultComponent.java
@@ -110,6 +110,8 @@ public class OseeSearchResultComponent extends VerticalLayout implements SearchR
boolean showVerbose = options.getVerboseResults();
vLayout_Matches.setVisible(showVerbose);
breadcrumbComp.setVisible(showVerbose);
+ } else {
+ ComponentUtility.logWarn("OseeSearchResultComponent.setDisplayOptions - WARNING: null value detected.", this);
}
}
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java
index b0aaee1..8518a5a 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java
@@ -185,7 +185,9 @@ public class OseeSearchResultsListComponent extends VerticalLayout implements Se
mainLayout.addComponent(searchResultComp, 0);
}
} catch (IndexOutOfBoundsException e) {
- System.out.println("OseeSearchResultsListComponent.updateSearchResultsLayout - CRITICAL ERROR: IndexOutOfBoundsException e");
+ ComponentUtility.logError(
+ "OseeSearchResultsListComponent.updateSearchResultsLayout - CRITICAL ERROR: IndexOutOfBoundsException",
+ this);
}
}
}
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/search/OseeArtifactView.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/search/OseeArtifactView.java
index a15f615..cc29bf4 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/search/OseeArtifactView.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/search/OseeArtifactView.java
@@ -13,6 +13,7 @@ package org.eclipse.osee.display.view.web.search;
import org.eclipse.osee.display.api.components.ArtifactHeaderComponent;
import org.eclipse.osee.display.api.data.ViewArtifact;
import org.eclipse.osee.display.view.web.AbstractCommonView;
+import org.eclipse.osee.display.view.web.components.ComponentUtility;
import org.eclipse.osee.display.view.web.components.OseeArtifactNameLinkComponent;
import org.eclipse.osee.display.view.web.components.OseeAttributeComponent;
import org.eclipse.osee.display.view.web.components.OseeBreadcrumbComponent;
@@ -124,6 +125,8 @@ public abstract class OseeArtifactView extends AbstractCommonView implements Art
breadcrumbComp.setArtifact(artifact);
artifactType.setCaption(String.format("[%s]", artifact.getArtifactType()));
artifactName.setArtifact(artifact);
+ } else {
+ ComponentUtility.logWarn("OseeArtifactView.updateLayout - WARNING: null value detected", this);
}
}
diff --git a/plugins/org.eclipse.osee.support.config/launchConfig/UI.launch b/plugins/org.eclipse.osee.support.config/launchConfig/UI.launch
index 77f3dab..fdfcb37 100644
--- a/plugins/org.eclipse.osee.support.config/launchConfig/UI.launch
+++ b/plugins/org.eclipse.osee.support.config/launchConfig/UI.launch
@@ -20,7 +20,7 @@
<stringAttribute key="pde.version" value="3.3"/>
<booleanAttribute key="show_selected_only" value="false"/>
<stringAttribute key="target_bundles" value="ch.qos.logback.classic@default:default,ch.qos.logback.core@default:default,ch.qos.logback.slf4j@default:false,com.google.collect@default:default,com.ibm.icu@default:default,javax.servlet@default:default,javax.xml@default:default,org.apache.commons.codec@default:default,org.apache.commons.httpclient@default:default,org.apache.commons.lang@default:default,org.apache.commons.logging@default:default,org.apache.xerces@default:default,org.apache.xml.resolver@default:default,org.apache.xml.serializer@default:default,org.eclipse.ant.core@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.filesystem.win32.x86@default:false,org.eclipse.core.filesystem@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.net.win32.x86@default:false,org.eclipse.core.net@default:default,org.eclipse.core.resources.win32.x86@default:false,org.eclipse.core.resources@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.runtime@default:true,org.eclipse.core.variables@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.ds@1:true,org.eclipse.equinox.event@default:default,org.eclipse.equinox.http.jetty@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.security.win32.x86@default:false,org.eclipse.equinox.security@default:default,org.eclipse.equinox.servletbridge.extensionbundle@default:false,org.eclipse.equinox.transforms.hook@default:false,org.eclipse.equinox.util@default:default,org.eclipse.equinox.weaving.hook@default:false,org.eclipse.osgi.services@default:default,org.eclipse.osgi.util@default:default,org.eclipse.osgi@-1:true,org.hamcrest.core@default:default,org.junit*4.8.2.v4_8_2_v20110321-1705@default:default,org.mortbay.jetty.server@default:default,org.mortbay.jetty.util@default:default,org.objectweb.asm@default:default,org.slf4j.api@default:default,org.slf4j.jcl@default:default"/>
-<stringAttribute key="timestamp" value="1319671543474"/>
+<stringAttribute key="timestamp" value="1319756060609"/>
<booleanAttribute key="tracing" value="false"/>
<booleanAttribute key="useCustomFeatures" value="false"/>
<booleanAttribute key="useDefaultConfigArea" value="true"/>