blob: a4396f35be0155a93bb3a0fa0b1f037e59314b9d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.debug.ui.classpath;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
import org.eclipse.swt.widgets.Shell;
/**
* Edits classpath entries.
*
* @since 3.2
*
*/
public interface IClasspathEditor {
/**
* Returns whether the given classpath entry can be edited.
*
* @param configuration launch configuration
* @param entries runtime classpath entry
* @return whether the entries can be edited
*/
public boolean canEdit(ILaunchConfiguration configuration, IRuntimeClasspathEntry[] entries);
/**
* Returns replacement entries for the given entries, after editing them,
* or <code>null</code> if the edit was cancelled.
*
* @param shell shell on which to open dialogs
* @param configuration launch configuration
* @param entries runtime classpath entries
* @return replacement entries or <code>null</code> if cancelled
*/
public IRuntimeClasspathEntry[] edit(Shell shell, ILaunchConfiguration configuration, IRuntimeClasspathEntry[] entries);
}