cdt/cdt_5_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableImporter.java
author wpaul
Mon, 01 Jun 2009 19:15:36 -0500
changeset 14 c50c3d06898c
parent 0 0e6d23e2b466
permissions -rw-r--r--
executables view changes

/*******************************************************************************
 * Copyright (c) 2008 Nokia 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:
 * Nokia - Initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.debug.core.executables;

import org.eclipse.core.runtime.IProgressMonitor;

public interface IExecutableImporter {

	static int LOW_PRIORITY = 25;
	static int NORMAL_PRIORITY = 50;
	static int HIGH_PRIORITY = 75;
	
	/**
	 * Gets the priority to be used when importing these executables.
	 * The priority is used by the Executables Manager when multiple IExecutableImporters are available.
	 * IExecutableImporter.importExecutables will be called for each one in priority order and will 
	 * stop with the first one that returns TRUE.
	 * 
	 * @param executable
	 * @return the priority level to be used for this ISourceFilesProvider
	 */
	int getPriority(String[] fileNames);

	public boolean importExecutables(String[] fileNames, IProgressMonitor monitor);

}