org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/ui/navigator/PackagingInformationDecorator.java
changeset 461 7a8f9fa8d278
parent 460 c0bff5ed874c
child 462 cdc4995b1677
--- a/org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/ui/navigator/PackagingInformationDecorator.java	Thu Jul 29 15:59:01 2010 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,71 +0,0 @@
-/**
- * Copyright (c) 2010 Symbian Foundation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of the License "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Symbian Foundation - initial contribution.
- * Contributors:
- * Description:
- * Overview:
- * Details:
- * Platforms/Drives/Compatibility:
- * Assumptions/Requirement/Pre-requisites:
- * Failures and causes:
- */
-package org.symbian.tools.mtw.ui.navigator;
-
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.jface.viewers.IDecoration;
-import org.eclipse.jface.viewers.ILabelProviderListener;
-import org.eclipse.jface.viewers.ILightweightLabelDecorator;
-import org.symbian.tools.mtw.core.MTWCore;
-import org.symbian.tools.mtw.core.projects.IMTWProject;
-import org.symbian.tools.mtw.core.runtimes.IPackager;
-import org.symbian.tools.mtw.ui.MTWCoreUI;
-
-public class PackagingInformationDecorator implements ILightweightLabelDecorator {
-
-    public void decorate(Object element, IDecoration decoration) {
-        IResource resource = null;
-        if (element instanceof IResource) {
-            resource = (IResource) element;
-        } else if (element instanceof IAdaptable) {
-            resource = (IResource) ((IAdaptable) element).getAdapter(IResource.class);
-        }
-        if (resource != null && resource.isAccessible()) {
-            IMTWProject project = MTWCore.getDefault().create(resource.getProject());
-            if (project != null) {
-                IPackager packager = MTWCore.getDefault().getRuntimesManager().getPackager(project);
-                if (packager.getPathInPackage(resource) != null) {
-                    decoration.addOverlay(MTWCoreUI.getImages().getExcludedIconDescriptor(), IDecoration.TOP_RIGHT);
-                }
-            }
-        }
-    }
-
-    public void addListener(ILabelProviderListener listener) {
-        // Do nothing
-
-    }
-
-    public void dispose() {
-        // Do nothing
-
-    }
-
-    public boolean isLabelProperty(Object element, String property) {
-        // Do nothing
-        return false;
-    }
-
-    public void removeListener(ILabelProviderListener listener) {
-        // Do nohing
-
-    }
-
-}