⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractclasspathentryvisitor.java

📁 eclipseme的最新版本的source,欢迎j2me程序员使用
💻 JAVA
字号:
/**
 * Copyright (c) 2003-2005 Craig Setera
 * All Rights Reserved.
 * Licensed under the Eclipse Public License - v 1.0
 * For more information see http://www.eclipse.org/legal/epl-v10.html
 */
package eclipseme.core.internal.utils;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;

/**
 * Abstract implementation of the IClasspathEntryVisitor.  Provides
 * a default implementation that will return <code>false</code>
 * concerning all resolution and traversal.
 * <p />
 * Copyright (c) 2003-2005 Craig Setera<br>
 * All Rights Reserved.<br>
 * Licensed under the Eclipse Public License - v 1.0<p/>
 * <br>
 * $Revision: 1.8 $
 * <br>
 * $Date: 2005/12/02 02:22:11 $
 * <br>
 * @author Craig Setera
 */
public abstract class AbstractClasspathEntryVisitor implements IClasspathEntryVisitor {
	/**
	 * Return a new instance of an object that may be used to run
	 * through the classpath entry tree.  The runner created will
	 * always traverse the tree in a depth-first manner.
	 * 
	 * @return
	 */
	public ClasspathEntryVisitorRunner getRunner() {
		return getRunner(false);
	}

	/**
	 * Return a new instance of an object that may be used to run
	 * through the classpath entry tree.  This method allows the
	 * specification of the breadth versus depth first traversal
	 * order.
	 * 
	 * @param breadthFirst if <code>true</code> use a breadth-first
	 * traversal rather than a depth-first traversal.
	 * @return
	 */
	public ClasspathEntryVisitorRunner getRunner(boolean breadthFirst) {
		return new ClasspathEntryVisitorRunner(breadthFirst);
	}

	/**
	 * @see eclipseme.core.internal.utils.IClasspathEntryVisitor#visitContainerBegin(IClasspathEntry, org.eclipse.jdt.core.IJavaProject, IPath, org.eclipse.core.runtime.IProgressMonitor)
	 */
	public boolean visitContainerBegin(IClasspathEntry entry, IJavaProject javaProject, IPath containerPath, IProgressMonitor monitor) throws CoreException {
		return false;
	}

	/**
	 * @see eclipseme.core.internal.utils.IClasspathEntryVisitor#visitContainerEnd(org.eclipse.jdt.core.IClasspathEntry, org.eclipse.jdt.core.IJavaProject, org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IProgressMonitor)
	 */
	public void visitContainerEnd(IClasspathEntry entry, IJavaProject javaProject, IPath containerPath, IProgressMonitor monitor) throws CoreException {
	}

	/**
	 * @see eclipseme.core.internal.utils.IClasspathEntryVisitor#visitLibraryEntry(org.eclipse.jdt.core.IClasspathEntry, org.eclipse.jdt.core.IJavaProject, org.eclipse.core.runtime.IProgressMonitor)
	 */
	public void visitLibraryEntry(IClasspathEntry entry, IJavaProject javaProject, IProgressMonitor monitor) throws CoreException {
	}

	/**
	 * @see eclipseme.core.internal.utils.IClasspathEntryVisitor#visitProject(IClasspathEntry, org.eclipse.jdt.core.IJavaProject, org.eclipse.jdt.core.IJavaProject, org.eclipse.core.runtime.IProgressMonitor)
	 */
	public boolean visitProject(IClasspathEntry entry, IJavaProject javaProject, IJavaProject classpathProject, IProgressMonitor monitor) throws CoreException {
		return false;
	}

	/**
	 * @see eclipseme.core.internal.utils.IClasspathEntryVisitor#visitSourceEntry(org.eclipse.jdt.core.IClasspathEntry, org.eclipse.jdt.core.IJavaProject, org.eclipse.core.runtime.IProgressMonitor)
	 */
	public void visitSourceEntry(IClasspathEntry entry, IJavaProject javaProject, IProgressMonitor monitor) throws CoreException {
	}

	/**
	 * @see eclipseme.core.internal.utils.IClasspathEntryVisitor#visitVariable(IClasspathEntry, org.eclipse.jdt.core.IJavaProject, java.lang.String, org.eclipse.core.runtime.IProgressMonitor)
	 */
	public boolean visitVariable(IClasspathEntry entry, IJavaProject javaProject, String variableName, IProgressMonitor monitor) throws CoreException {
		return false;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -