cdt/cdt_5_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IExecutableProvider.java
changeset 14 c50c3d06898c
parent 8 2cfb52d98e82
child 15 3ac8c55882b5
equal deleted inserted replaced
8:2cfb52d98e82 14:c50c3d06898c
     1 /*******************************************************************************
       
     2  * Copyright (c) 2008 Nokia and others.
       
     3  * All rights reserved. This program and the accompanying materials
       
     4  * are made available under the terms of the Eclipse Public License v1.0
       
     5  * which accompanies this distribution, and is available at
       
     6  * http://www.eclipse.org/legal/epl-v10.html
       
     7  *
       
     8  * Contributors:
       
     9  * Nokia - Initial API and implementation
       
    10  *******************************************************************************/
       
    11 package org.eclipse.cdt.debug.core.executables;
       
    12 
       
    13 import org.eclipse.core.runtime.IProgressMonitor;
       
    14 import org.eclipse.core.runtime.IStatus;
       
    15 
       
    16 /**
       
    17  * IExecutablesProvider supplies a list of executables to the Executables
       
    18  * Manager.
       
    19  * 
       
    20  * @author Ken Ryall
       
    21  * 
       
    22  */
       
    23 public interface IExecutableProvider {
       
    24 
       
    25 	static int LOW_PRIORITY = 25;
       
    26 	static int NORMAL_PRIORITY = 50;
       
    27 	static int HIGH_PRIORITY = 75;
       
    28 	
       
    29 	/**
       
    30 	 * Gets the priority to be used when providing a list of executables.
       
    31 	 * The priority is used by the Executables Manager when multiple IExecutableProvider are available.
       
    32 	 * IExecutableImporter.importExecutables will be called for each one in priority order.
       
    33 	 * 
       
    34 	 * @param executable
       
    35 	 * @return the priority level to be used for this ISourceFilesProvider
       
    36 	 */
       
    37 	int getPriority();
       
    38 
       
    39 	Executable[] getExecutables(IProgressMonitor monitor);
       
    40 
       
    41 	IStatus removeExecutable(Executable executable, IProgressMonitor monitor);
       
    42 
       
    43 }