KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > ui > classpath > IClasspathEditor


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation 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  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.jdt.internal.debug.ui.classpath;
13
14 import org.eclipse.debug.core.ILaunchConfiguration;
15 import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
16 import org.eclipse.swt.widgets.Shell;
17
18 /**
19  * Edits classpath entries.
20  *
21  * @since 3.2
22  *
23  */

24 public interface IClasspathEditor {
25     
26     /**
27      * Returns whether the given classpath entry can be edited.
28      *
29      * @param configuration launch configuration
30      * @param entries runtime classpath entry
31      * @return whether the entries can be edited
32      */

33     public boolean canEdit(ILaunchConfiguration configuration, IRuntimeClasspathEntry[] entries);
34     
35     /**
36      * Returns replacement entries for the given entries, after editing them,
37      * or <code>null</code> if the edit was cancelled.
38      *
39      * @param shell shell on which to open dialogs
40      * @param configuration launch configuration
41      * @param entries runtime classpath entries
42      * @return replacement entries or <code>null</code> if cancelled
43      */

44     public IRuntimeClasspathEntry[] edit(Shell shell, ILaunchConfiguration configuration, IRuntimeClasspathEntry[] entries);
45
46 }
47
Popular Tags