Web UI -- Added cog as nav icon for driver matrix view.
- fixed bug where glyph was not installed when icon mapping made.

Change-Id: Iea9a145ff0caf6b4977bec4e71f75738d3174719
diff --git a/apps/drivermatrix/src/main/java/org/onosproject/drivermatrix/DriverViewComponent.java b/apps/drivermatrix/src/main/java/org/onosproject/drivermatrix/DriverViewComponent.java
index 5f4f918..958b022 100644
--- a/apps/drivermatrix/src/main/java/org/onosproject/drivermatrix/DriverViewComponent.java
+++ b/apps/drivermatrix/src/main/java/org/onosproject/drivermatrix/DriverViewComponent.java
@@ -38,6 +38,7 @@
 
     private static final String VIEW_ID = "driverMatrix";
     private static final String VIEW_TEXT = "Driver Matrix";
+    private static final String NAV_ICON = "nav_drivers";
 
     private final Logger log = LoggerFactory.getLogger(getClass());
 
@@ -46,7 +47,7 @@
 
     // List of application views
     private final List<UiView> uiViews = ImmutableList.of(
-            new UiView(UiView.Category.PLATFORM, VIEW_ID, VIEW_TEXT)
+            new UiView(UiView.Category.PLATFORM, VIEW_ID, VIEW_TEXT, NAV_ICON)
     );
 
     // Factory for UI message handlers
diff --git a/apps/drivermatrix/src/main/resources/app/view/driverMatrix/driverMatrix.js b/apps/drivermatrix/src/main/resources/app/view/driverMatrix/driverMatrix.js
index 80d46a3..e0a4689 100644
--- a/apps/drivermatrix/src/main/resources/app/view/driverMatrix/driverMatrix.js
+++ b/apps/drivermatrix/src/main/resources/app/view/driverMatrix/driverMatrix.js
@@ -48,6 +48,10 @@
     }
 
     angular.module('ovDriverMatrix', [])
+        .run(['IconService', function (is) {
+            // Create our icon-to-glyph binding here:
+            is.registerIconMapping('nav_drivers', 'cog');
+        }])
         .controller('OvDriverMatrixCtrl',
         ['$log', '$scope', 'TableBuilderService',
             'FnService', 'WebSocketService',