1 /* 2 * Copyright (C) 2011 The Android Open Source Project 3 * 4 * Licensed under the Eclipse Public License, Version 1.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.eclipse.org/org/documents/epl-v10.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.ide.eclipse.ndk.internal.discovery; 18 19 import org.eclipse.cdt.make.core.scannerconfig.IDiscoveredPathManager.IDiscoveredPathInfo; 20 import org.eclipse.cdt.make.core.scannerconfig.IScannerInfoCollector3; 21 import org.eclipse.cdt.make.core.scannerconfig.IScannerInfoCollectorCleaner; 22 import org.eclipse.cdt.make.core.scannerconfig.InfoContext; 23 import org.eclipse.cdt.make.core.scannerconfig.ScannerInfoTypes; 24 import org.eclipse.cdt.managedbuilder.scannerconfig.IManagedScannerInfoCollector; 25 import org.eclipse.core.resources.IProject; 26 import org.eclipse.core.resources.IResource; 27 import org.eclipse.core.runtime.CoreException; 28 import org.eclipse.core.runtime.IProgressMonitor; 29 30 import java.util.List; 31 import java.util.Map; 32 33 public class NdkScannerInfoCollector implements IScannerInfoCollector3, 34 IScannerInfoCollectorCleaner, IManagedScannerInfoCollector { 35 36 private NdkDiscoveredPathInfo mPathInfo; 37 38 @Override contributeToScannerConfig(Object resource, Map scannerInfo)39 public void contributeToScannerConfig(Object resource, Map scannerInfo) { 40 throw new Error("Not implemented"); //$NON-NLS-1$ 41 } 42 43 @Override getCollectedScannerInfo(Object resource, ScannerInfoTypes type)44 public List getCollectedScannerInfo(Object resource, ScannerInfoTypes type) { 45 throw new Error("Not implemented"); //$NON-NLS-1$ 46 } 47 48 @Override setProject(IProject project)49 public void setProject(IProject project) { 50 throw new Error("Not implemented"); //$NON-NLS-1$ 51 } 52 53 @Override updateScannerConfiguration(IProgressMonitor monitor)54 public void updateScannerConfiguration(IProgressMonitor monitor) throws CoreException { 55 mPathInfo.update(monitor); 56 } 57 58 @Override createPathInfoObject()59 public IDiscoveredPathInfo createPathInfoObject() { 60 return mPathInfo; 61 } 62 63 @Override getDefinedSymbols()64 public Map<String, String> getDefinedSymbols() { 65 throw new Error("Not implemented"); //$NON-NLS-1$ 66 } 67 68 @Override getIncludePaths()69 public List getIncludePaths() { 70 throw new Error("Not implemented"); //$NON-NLS-1$ 71 } 72 73 @Override setInfoContext(InfoContext context)74 public void setInfoContext(InfoContext context) { 75 mPathInfo = new NdkDiscoveredPathInfo(context.getProject()); 76 } 77 78 @Override deleteAllPaths(IResource resource)79 public void deleteAllPaths(IResource resource) { 80 throw new Error("Not implemented"); //$NON-NLS-1$ 81 } 82 83 @Override deleteAllSymbols(IResource resource)84 public void deleteAllSymbols(IResource resource) { 85 throw new Error("Not implemented"); //$NON-NLS-1$ 86 } 87 88 @Override deletePath(IResource resource, String path)89 public void deletePath(IResource resource, String path) { 90 throw new Error("Not implemented"); //$NON-NLS-1$ 91 } 92 93 @Override deleteSymbol(IResource resource, String symbol)94 public void deleteSymbol(IResource resource, String symbol) { 95 throw new Error("Not implemented"); //$NON-NLS-1$ 96 } 97 98 @Override deleteAll(IResource resource)99 public void deleteAll(IResource resource) { 100 mPathInfo.delete(); 101 } 102 103 } 104