blob: e6d7ec981b28ec0f5fb9ca5ce8b7cc7a40cd2773 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2008 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/**
*
*/
package org.eclipse.wst.jsdt.core.compiler.libraries;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.wst.jsdt.core.IJavaScriptProject;
import org.eclipse.wst.jsdt.internal.ui.IJsGlobalScopeContainerInitializerExtension;
/**
* @author childsb
*
*/
public class InternetExplorerUILibInitializer implements IJsGlobalScopeContainerInitializerExtension{
public ImageDescriptor getImage(IPath containerPath, String element, IJavaScriptProject project) {
if(containerPath==null) return null;
/* Dont use the rino image for the individual files */
String requestedContainerPath = new Path(element).getFileExtension();
if(requestedContainerPath!=null && requestedContainerPath.equalsIgnoreCase("js")) return null;
// char[][] allLibFiles = ( new IeLibLocation()).getLibraryFileNames();
// for(int i = 0;i<allLibFiles.length;i++) {
// String libName = new String(allLibFiles[i]);
// if (element!=null && requestedContainerPath.equals(libName)) {
// return null;
// }
// }
return ImageDescriptor.createFromFile(this.getClass(),"ie_small.gif");
//return ImageDescriptor.createFromFile(this.getClass(),"ie_small.gif");
// System.out.println("Unimplemented method:BasicBrowserLibraryJsGlobalScopeContainerInitializer.getImage");
//return null;
}
}