/*
 *    Debrief - the Open Source Maritime Analysis Application
 *    http://debrief.info
 *
 *    (C) 2000-2014, PlanetMayo Ltd
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the Eclipse Public License v1.0
 *    (http://www.eclipse.org/legal/epl-v10.html)
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 */
package org.mwc.debrief.core.providers;

import org.eclipse.jface.resource.ImageDescriptor;
import org.mwc.cmap.core.ui_support.CoreViewLabelProvider.ViewLabelImageHelper;
import org.mwc.debrief.core.DebriefPlugin;
import org.mwc.debrief.core.providers.measured_data.DatasetWrapper;
import org.mwc.debrief.core.providers.measured_data.FolderWrapper;

import MWC.GUI.Editable;

public class MeasuredDataImageHelper implements ViewLabelImageHelper
{

	public ImageDescriptor getImageFor(final Editable editable)
	{
		ImageDescriptor res = null;
		
		if (editable instanceof FolderWrapper)
			res = DebriefPlugin.getImageDescriptor("icons/16/library.png");
		else if (editable instanceof DatasetWrapper)
			res = DebriefPlugin.getImageDescriptor("icons/16/sensor.png");		 
		return res;
	}

}

@@ -622,24 +622,62 @@
 escriptor;%0D%0A
+import org.mwc.cmap.core.CorePlugin;%0D%0A
 import org.m
@@ -749,52 +749,8 @@
 r;%0D%0A
-import org.mwc.debrief.core.DebriefPlugin;%0D%0A
 impo
@@ -1131,39 +1131,36 @@
 pper)%0D%0A%09%09%09res = 
-Debrief
+Core
 Plugin.getImageD
@@ -1179,23 +1179,22 @@
 cons/16/
-library
+folder
 .png%22);%0D
@@ -1251,23 +1251,20 @@
 %09%09res = 
-Debrief
+Core
 Plugin.g
@@ -1295,14 +1295,19 @@
 /16/
-sensor
+measurement
 .png

switch to new icons