1 11 package org.eclipse.core.internal.resources.mapping; 12 13 import org.eclipse.core.resources.*; 14 import org.eclipse.core.runtime.*; 15 16 38 public abstract class ResourceMapping extends PlatformObject { 39 40 47 public abstract Object getModelObject(); 48 49 55 public abstract IProject[] getProjects(); 56 57 94 public abstract ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException; 95 96 111 public void accept(ResourceMappingContext context, IResourceVisitor visitor, IProgressMonitor monitor) throws CoreException { 112 ResourceTraversal[] traversals = getTraversals(context, monitor); 113 for (int i = 0; i < traversals.length; i++) { 114 ResourceTraversal traversal = traversals[i]; 115 traversal.accept(visitor); 116 } 117 } 118 } 119 | Popular Tags |